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
makefiles

 
Post new topic   Reply to topic Printable version
 View previous topic  Probably a mistake? Post :: Post Remove from LinkedList  View next topic  
Author Message
Samapico
No, these DO NOT look like penises, ok?


Age:32
Gender:Gender:Male
Joined: May 08 2003
Posts: 1252
Location: Montreal, Canada
Offline

PostPosted: Sun Jan 09, 2011 11:13 pm    Post subject: makefiles Reply to topic Reply with quote

So... I have a makefile that looks like this:

Code: Show/Hide

lvzhud_mods = lvzhud

$(eval $(call dl_template,lvzhud))

# dist: public


My module, however, uses functions from another .c file in the same folder (functs.c), and I have included functs.h as well. When I load the module, I get 'undefined symbol' errors for the functions that are defined in functs.c. Is it because I should specify that file too in the makefile, somehow? Or should I absolutely avoid this and include the .c directly, kind of like how util.c is included?


I'm compiling this on Linux, by the way.


Edit: I tried adding this:

lvzhud_mods = lvzhud functs

and it seems to work... so I guess it's:

<dll or so file>_mods = <source files> ?
_________________
DCME co-developer
17th Parallel Head Sysop
Subspace: The Future
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Mon Jan 10, 2011 6:50 am    Post subject: Reply to topic Reply with quote

Yeah, what you did is probably the simplest way to accomplish what you want.
_________________
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
Goldgosting
Guest


Offline

PostPosted: Sun Jan 16, 2011 10:30 pm    Post subject: Reply to topic Reply with quote

It is needed for you. When you want to add more functionality to your server you can install new custom modules. Differences in server versions often mean something will break in a module, compiling from source can help fix this.
Contents
[hide]

* 1 C modules
o 1.1 Using Makefile fragments
o 1.2 Using a custom Makefile
o 1.3 With Dev C++
+ 1.3.1 Step 1
+ 1.3.2 Step 2
thanks
Back to top
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: 112 page(s) served in previous 5 minutes.

phpBB Created this page in 0.086551 seconds : 27 queries executed (69.0%): GZIP compression disabled