LinuxQuestions.org
Visit Jeremy's Blog.
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 08-25-2011, 09: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, 12:07 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
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, 12: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 01:09 AM.
 
1 members found this post helpful.
  


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

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

All times are GMT -5. The time now is 11:47 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