Server Help

ASSS Questions - Problem compiling module

Hakaku - Sun Jun 18, 2006 4:58 pm
Post subject: Problem compiling module
Alright, so I've been following the install guide for modules, but when I try to compile I get about 45 errors. I have no clue why, I'm using the same version of Dev-C++ on windows.

Here's a small part of my compile log if it helps:
Code: Show/Hide
Compiler: Default compiler
Building Makefile: "D:\Downloads\Dev_Cpp\Dev-Cpp\Makefile.win"
Executing  make...
make.exe -f "D:\Downloads\Dev_Cpp\Dev-Cpp\Makefile.win" all
gcc.exe -c ../../nomysql/nomysql.c -o ../../nomysql/nomysql.o -I"D:/DOWNLOADS/DEV_CPP/DEV-CPP/include"  -I"D:/Subspace/asss-1.4.2/src/include"  -I"D:/Subspace/asss-1.4.2/windeps"  -I"D:/Subspace/asss-1.4.2/src"  -DBUILDING_DLL=1 

In file included from D:/Subspace/asss-1.4.2/src/include/defs.h:37,
                 from D:/Subspace/asss-1.4.2/src/include/asss.h:15,
                 from ../../nomysql/nomysql.c:25:
D:/Subspace/asss-1.4.2/src/include/util.h:344:21: pthread.h: No such file or directory
In file included from D:/Subspace/asss-1.4.2/src/include/defs.h:37,
                 from D:/Subspace/asss-1.4.2/src/include/asss.h:15,
                 from ../../nomysql/nomysql.c:25:
D:/Subspace/asss-1.4.2/src/include/util.h:353: error: syntax error before "pthread_mutex_t"

D:/Subspace/asss-1.4.2/src/include/util.h:353: warning: no semicolon at end of struct or union

D:/Subspace/asss-1.4.2/src/include/util.h:354: warning: data definition has no type or storage class
D:/Subspace/asss-1.4.2/src/include/util.h:355: warning: data definition has no type or storage class
D:/Subspace/asss-1.4.2/src/include/util.h:358: error: syntax error before '*' token

And yes, if you care I have AS3 in D:/Subspace/asss-1.4.2/ and dev-c++ in D:/Downloads/Dev-cpp/Dev-cpp/. The only difference between the guide is that I don't have pthreadgc2.dll (I have pthreadgc.dll though). Thanks for the help.
Dr Brain - Sun Jun 18, 2006 5:35 pm
Post subject:
pthread.h: No such file or directory

means it can't find the pthread includes anywhere.
Hakaku - Sun Jun 18, 2006 6:04 pm
Post subject:
Alright, so I relocated the pthread.h into the include and I get this:

Code: Show/Hide
Compiler: Default compiler
Building Makefile: "D:\Downloads\Dev_Cpp\Dev-Cpp\Makefile.win"
Executing  make...
make.exe -f "D:\Downloads\Dev_Cpp\Dev-Cpp\Makefile.win" all
dllwrap.exe --output-def libNomysql.def --implib libNomysql.a ../../nomysql/nomysql.o ../../../Subspace/asss-1.4.2/src/main/util.o  -L"D:/DOWNLOADS/DEV_CPP/DEV-CPP/lib" --no-export-all-symbols --add-stdcall-alias "../../../Program Files/pythoninc/pthreads/pthreads/lib/pthreadVC.dll"   -o Nomysql.dll

gcc: s-1.4.2/src/main/util.oC:\WINDOWS\TEMP/cca68423: No such file or directory

D:\DOWNLO~1\DEV_CPP\DEV-CPP\BIN\DLLWRAP.EXE: no export definition file provided.
Creating one, but that may not be what you want
D:\DOWNLO~1\DEV_CPP\DEV-CPP\BIN\DLLWRAP.EXE: D:\DOWNLO~1\DEV_CPP\DEV-CPP\BIN\gcc exited with status 1

Execution terminated

How do I get it to fix this (the gcc:... line)?

Edit: I somehow found pthreadgc2.dll on my computer (after it never appeared in windows' find), switched it and now it seems to work.
Smong - Mon Jun 19, 2006 7:35 am
Post subject:
Did you add the windeps folder to the include path and add pthread<blah>.dll to the libraries? (Steps 4 to 7). Don't forget when you add another include path, you must click the "Add" button to actually add it to the list.
Hakaku - Mon Jun 19, 2006 11:23 am
Post subject:
Smong wrote:
Did you add the windeps folder to the include path and add pthread<blah>.dll to the libraries? (Steps 4 to 7). Don't forget when you add another include path, you must click the "Add" button to actually add it to the list.

lol, no I got the setup right just my pthread.h was in wrong directory and I was missing the pthreadgc2.dll, but later found it and it works. Thanks anyways.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group