LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2011, 10:42 PM   #1
NoobLion
LQ Newbie
 
Registered: Jul 2011
Distribution: Fedora , linux mint 9, current: OpenSuse 11.4
Posts: 8

Rep: Reputation: Disabled
gcc fatal error :no such file or directory question


sloan@Nexus:~/Desktop/Research/olb-0.6r0/examples/poiseuille2d> gcc -c poiseuille.cpp -o poise

poiseuille.cpp:24:19: fatal error: olb2D.h: No such file or directory
compilation terminated.

anyways i have the olb2D.h file in anouther directory but im not really sure what im doing wrong here in compiling this. Kinda tired so forgive me

anyhelp would be appreciated
 
Old 08-26-2011, 01:07 AM   #2
a4z
Member
 
Registered: Feb 2009
Posts: 526

Rep: Reputation: 188Reputation: 188
you need to tell the compiler about additional include directories via -I/path/to/dir
 
1 members found this post helpful.
Old 08-26-2011, 01:53 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I've just downloaded the source for OpenLB and there's a Makefile in that directory. So, just type "make" to build the executable. Also, for what it's worth, using -c wouldn't build the complete exectuable; it would only generate object files and you'd need to perform the linking step manually.

Edit: There is also a user's guide on the OpenLB website, so reading that would probably have told you how to build the examples.

Last edited by Nylex; 08-26-2011 at 02:09 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can not compile gcc, fatal error: stdio.h: No such file or directory StefanTh Linux - Newbie 6 02-10-2014 01:06 AM
gcc: error trying to exec 'cc1plus': execvp: No such file or directory- Fedora 10 AtmoHawk03 Linux - Newbie 5 09-17-2013 01:25 PM
I am getting an error as gcc: c-parse.c: No such file or directory pradheep2 Linux - General 5 06-12-2010 06:13 AM
gcc error: iostream: no such file or directory linux 4.1.2 Liah Linux - Newbie 1 03-10-2009 11:53 AM
gcc: installation problem, cannot exec `as': No such file or directory ERROR jaisol Slackware 8 08-05-2006 01:01 PM


All times are GMT -5. The time now is 03:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration