Using a DLL built with cygwin in VC++

2007-02-08 Thread Papasha
Hello, I'm trying to use a DLL created with cygwin in my VC++ project. I have a DLL file and I need to create .lib in order to use the DLL in VC++, I use the following command sequence: dlltool --export-all-symbols --output-def mylib.def mylib.dll #cygwin's dlltool lib /DEF:mylib.def /OUT:mylib

Using a DLL built with cygwin in VC++

2007-02-07 Thread Papasha
Hello, I'm trying to use a DLL created with cygwin in my VC++ project. I have a DLL file and I need to create .lib in order to use the DLL in VC++, I use the following command sequence: dlltool --export-all-symbols --output-def mylib.def mylib.dll #cygwin's dlltool lib /DEF:mylib.def /OUT:mylib

Strange fork/exec bug, two processes instead of one are created

2006-10-23 Thread Papasha
Hello, everyone, I have a problem using fork/exec, I have a program that launches other program: //spawner.exe #include #include int main(int argc, char* argv[]) { pid_t pid = 0; if (argc < 2) { fprintf(stderr, "Usage: spawner executable [arguments]\n"); return -1; } pid = fork(); if (pid =