From: Ignasi V. <ign...@gr...> - 2003-04-09 10:16:45
|
Yes, It fails with and without -mthreads in compilation and linking. Here is the list of libraries linked in the application. -lnetapi32 -lwsock32 -lstdc++ -lmingwthrd -lmingw32 -lgcc -lmoldname -lmsvcrt -lmingwthr d -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingwthrd -lmingw32 -lgcc -lmoldname -lmsvcrt What am I going wrong ? Thanks in advance, Ignasi Villagrasa. Ranjit Mathew wrote: >>The application works properly under Watcom 10.5 C++ compiler, but when >>I compile it under cygwin and more than a thread is accesing to >>try/catch code, an access violation appears. If I inhibit try/catch >>statements the program works fine. >> > >Sorry if you have answered this before, but does the problem persist >even if you compile and link using the "-mthreads" option? > >That is the option that links in extra support needed to use >exceptions in multi-threaded environments. It also means that your >application will depend on the MinGW "mingwm10.dll" DLL (found >in the "bin" folder). > >Ranjit. > > |