LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-12-2011, 11:19 AM   #1
Farshad_Noravesh
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Post multiple files to compile by g++


Hi,
Thanks for your posts. It is really useful. please tell me how i could compile for example: a tutorial file of cantera open source files. when i do : g++ example.cpp -o example
i get huge errors such as the header files are not here,...
please tell me how i could compile it.
ofcourse i have configured the full opensources and i see in /usr/local/cantera/bin
that the files are there but i still can not compile and execute any cpp file.
Thanks,
Farshad
 
Old 02-02-2011, 10:23 PM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by Farshad_Noravesh View Post
when i do : g++ example.cpp -o example
i get huge errors such as the header files are not here,...
please tell me how i could compile it.
I do not know what is cantera, but if you have problems in compiling any .cpp files in Linux under GCC, post here the EXACT error messages in code tagshttp://www.linuxquestions.org/questi...do=bbcode#code , then perhaps someone might help.
 
Old 02-03-2011, 12:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Cantera : Probably this ..
http://www.aresinstitute.org/index.p...=117&Itemid=80
" CANTERA - Object-Oriented Software for Reacting Flows"

Version 1.7 http://switch.dl.sourceforge.net/pro...a-1.7.0.tar.gz
( cd cantera-1.7.0/ && ./preconfig && make ).

There is a Makefile + 13 files in examples/ .
Which usually means, that a file cannot be compiled separately :
It has some connection to other files ( dependencies ? )
Hence the Makefile. ( cd examples/ && make )

And the files are old : gcc / g++ version 4.1 will do.
( Examples can be compiled with g++ 4.4.1 ).

..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compile multiple files Mork2k4 Programming 3 09-26-2009 12:46 AM
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 12:49 AM
Using MAKE to compile multiple files found by FIND mrvain Programming 5 06-06-2008 09:52 PM
Using g++ to compile multiple source files arnab_be Linux - Newbie 1 03-03-2004 02:22 PM
Using g++ to compile multiple source files arnab_be Linux - Newbie 1 03-03-2004 02:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration