Click here to Skip to main content
16,004,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: persistent pointer/memory allocation Pin
«_Superman_»18-Mar-09 16:53
professional«_Superman_»18-Mar-09 16:53 
AnswerRe: persistent pointer/memory allocation Pin
Eytukan18-Mar-09 19:41
Eytukan18-Mar-09 19:41 
AnswerRe: persistent pointer/memory allocation Pin
abiemann19-Mar-09 8:34
abiemann19-Mar-09 8:34 
QuestionConverting win32 console app. to service ? Pin
mmayur18-Mar-09 10:01
mmayur18-Mar-09 10:01 
AnswerRe: Converting win32 console app. to service ? Pin
Jerry.Wang18-Mar-09 13:52
Jerry.Wang18-Mar-09 13:52 
QuestionSome help on interpreting this makefile for linux... Pin
leslie wu18-Mar-09 7:07
leslie wu18-Mar-09 7:07 
AnswerRe: Some help on interpreting this makefile for linux... Pin
Stuart Dootson18-Mar-09 8:14
professionalStuart Dootson18-Mar-09 8:14 
AnswerRe: Some help on interpreting this makefile for linux... Pin
bolivar12318-Mar-09 8:18
bolivar12318-Mar-09 8:18 
Your question has little to do with linkers.

Make files follow a fairly simple syntax:

build_target1: dependency1.o dependency2.o build_target2 ....etc.
commands to build the build target

build_target2:
command(s) needed to build this build target.

So, looking at your make file:

# compile the samples
gdc_samp1: gdc.o gdchart.o price_conv.o gdc_samp1.o $(GD_LIB)/libgd.a
$(CC) -o gdc_samp1 gdc.o gdchart.o price_conv.o gdc_samp1.o -L$(GD_LIB) -lgd -lm

The build target "gdc_samp1:" is what defines all that is needed to make the gdc_samp1. So, make converts the line:
$(CC) -o gdc_samp1 gdc.o gdchart.o price_conv.o gdc_samp1.o -L$(GD_LIB) -lgd -lm

to:

gcc -o gdc_samp1 gdc.o gdchart.o price_conv.o gdc_samp1.o -L$(GD_LIB) -lgd -lm



For more info on make files: Clickety[^]
Hope this helps
AnswerRe: Some help on interpreting this makefile for linux... Pin
CPallini18-Mar-09 8:35
mveCPallini18-Mar-09 8:35 
QuestionDevPartner Studio Pin
BobInNJ18-Mar-09 5:58
BobInNJ18-Mar-09 5:58 
AnswerRe: DevPartner Studio Pin
Stuart Dootson18-Mar-09 6:41
professionalStuart Dootson18-Mar-09 6:41 
AnswerRe: DevPartner Studio Pin
Joe Woodbury18-Mar-09 10:10
professionalJoe Woodbury18-Mar-09 10:10 
QuestionMove a file into an other file Pin
moody12318-Mar-09 4:47
moody12318-Mar-09 4:47 
AnswerRe: Move a file into an other file Pin
led mike18-Mar-09 4:59
led mike18-Mar-09 4:59 
AnswerRe: Move a file into an other file Pin
Eytukan18-Mar-09 5:08
Eytukan18-Mar-09 5:08 
AnswerRe: Move a file into an other file Pin
Cedric Moonen18-Mar-09 5:18
Cedric Moonen18-Mar-09 5:18 
QuestionRe: Move a file into an other file Pin
David Crow18-Mar-09 5:19
David Crow18-Mar-09 5:19 
AnswerRe: Move a file into an other file Pin
moody12318-Mar-09 6:25
moody12318-Mar-09 6:25 
QuestionInsufficient system resources exist to complete the requested service. Pin
SNI18-Mar-09 4:45
SNI18-Mar-09 4:45 
Questiong++ compiling paramter -static on Solaris sparc Pin
David Wong RZ18-Mar-09 3:26
David Wong RZ18-Mar-09 3:26 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Jerry.Wang18-Mar-09 3:29
Jerry.Wang18-Mar-09 3:29 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Jerry.Wang18-Mar-09 3:31
Jerry.Wang18-Mar-09 3:31 
AnswerRe: g++ compiling paramter -static on Solaris sparc Pin
Stuart Dootson18-Mar-09 4:37
professionalStuart Dootson18-Mar-09 4:37 
GeneralRe: g++ compiling paramter -static on Solaris sparc Pin
David Wong RZ18-Mar-09 22:59
David Wong RZ18-Mar-09 22:59 
GeneralRe: g++ compiling paramter -static on Solaris sparc Pin
David Wong RZ19-Mar-09 1:26
David Wong RZ19-Mar-09 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.