See build/cygwin/release/3rdparty/npk/libnpk_dev.a(npk_dev.o):npk_dev.c:(.text+0x141): undefined reference to `__commit'
Go to npk_dev.c and check these lines (in this case, cygwin is identified as NPK_PLATFORM_WINDOWS even if it could be identified as posix) :
NPK_RESULT npk_flush( NPK_HANDLE handle )
{
if( handle != 0 )
{
ifdef NPK_PLATFORM_WINDOWS
_commit( handle );
else
fsync( handle );
endif
}
return NPK_SUCCESS;
}
What is the expected output?
Compil success
What do you see instead?
link error
What version of the product are you using?
NPK_VERSION_STREAMABLE 27
On what operating system?
cygwin
3 skaiware
I thought it has been fixed by adding crtdll library : libcrtdll.a in /usr/lib
But exec crash at the very begining if this lib is added.
What steps will reproduce the problem?
ifdef NPK_PLATFORM_WINDOWS
else
endif
}
What is the expected output? Compil success What do you see instead? link error
What version of the product are you using? NPK_VERSION_STREAMABLE 27 On what operating system? cygwin
3 skaiware
I thought it has been fixed by adding crtdll library : libcrtdll.a in /usr/lib But exec crash at the very begining if this lib is added.
Is the commit() mandatory ?
This issue was moved from google code.