[osol-help] need help compiling.

2008-02-06 Thread sagar
hie ,
i have some programs written in c++ in text form and now i want to compile then 
.
i m using solaris 10 os ..with inbuilt gcc in usr/sfw/bin.
so how to go about it. plz give the command and the syntax if possible.
thank you.
 
 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org


Re: [osol-help] need help compiling.

2008-02-06 Thread Lars Tunkrans
Its  not that  simple .

  If you have  a single  sourcefile  with no Libraries to be linked 
you can probably do 

#CC=/usr/swf/bin/gcc
#CXX=/usr/sfw/bin/g++
#export CC CXX

#/usr/sfwbin/gmake   objectfilename

If you have a more sofisticated  set of C or C++   sourcefiles  
you need to learn   about   makefiles ,   the Linker  and other things 


These books comes to mind, 

http://www.amazon.com/UNIX-Programming-Environment-Brian-Kernighan/dp/013937681X
http://www.oreilly.com/catalog/make3/
 
 
This message posted from opensolaris.org
___
opensolaris-help mailing list
opensolaris-help@opensolaris.org