2 msgCompilation error while return function pointers

program with various files be compiled
\ alexandre_serra (27 Dec 2006)
. \ John \(Eljay\) Love-Jensen (27 Dec 2006)

2 msghelp!!
3 msgHelp installing GCC on to from-scratch system
1 msgOut of Office AutoReply: ezmlm warning
3 msgYet another aliasing question.
3 msginfo files under windows
3 msgGUI programming
1 msgARM startup file
3 msghelp....
3 msgOutput of (estimated) remaining compile time fo...
2 msgFw: About the precision of cos() sin() and tan(...
2 msgInitialization of zero globals
1 msgloop vectorization vs. sequential code vectoriz...
1 msg__thread storage specifier documentation
6 msgmingw help!!!
2 msggcc core gcc++
2 msgSyntax error when building gfortran in gcc-4.0.3
2 msg'Woodcrest' Xeon 3.0ghz optimal -march and opti...
2 msgLinking problems with gcc and AIX
Subject:RE: program with various files be compiled
Group:Gcc-help
From:John \(Eljay\) Love-Jensen
Date:27 Dec 2006


Hi Alexandre,

>Could someone tell me which command i am supposed to use so as to get a program with various files be compiled using gcc (c compiler in Cygwin shell).

Assuming your various files are foo.c, bar.c, quux.c:

gcc -o myapp foo.c bar.c quux.c

Then you can run myapp:

./myapp

If you want to see what the gcc toolchain driver is doing behind the scenes:

gcc -v -o myapp foo.c bar.c quux.c

HTH,
--Eljay


© 2004-2008 readlist.com