Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Problem compiling module

 
Post new topic   Reply to topic Printable version
 View previous topic  Continuum client encryption Post :: Post Best distro.  View next topic  
Author Message
Hakaku
Server Help Squatter


Joined: Apr 07 2006
Posts: 299
Location: Canada
Offline

PostPosted: Sun Jun 18, 2006 4:58 pm    Post subject: Problem compiling module Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jun 18, 2006 5:35 pm    Post subject: Reply to topic Reply with quote

pthread.h: No such file or directory

means it can't find the pthread includes anywhere.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Hakaku
Server Help Squatter


Joined: Apr 07 2006
Posts: 299
Location: Canada
Offline

PostPosted: Sun Jun 18, 2006 6:04 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon Jun 19, 2006 7:35 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Hakaku
Server Help Squatter


Joined: Apr 07 2006
Posts: 299
Location: Canada
Offline

PostPosted: Mon Jun 19, 2006 11:23 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 52 page(s) served in previous 5 minutes.

phpBB Created this page in 0.487780 seconds : 29 queries executed (93.3%): GZIP compression disabled