CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

%23include paths

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2008, 16:14
Default hi everyone! I'm curious wh
  #1
Member
 
Maxim Loginov
Join Date: Mar 2009
Posts: 33
Rep Power: 17
zeliboba is on a distinguished road
hi everyone!

I'm curious why in source code developers use simply

#include "someFile.H"

and add many -I$(LIB_SRC)/path/to/include to compiler options, instead of inclusion the path directly into the source file, like

#include "path/to/include/someFile.H"

and add only one option -I$(LIB_SRC). this makes code more readable and facilitate code browsing with various code analyzers.

is there a particular reason for this type of inclusion?
zeliboba is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set compiler paths r08n OpenFOAM Installation 0 April 1, 2008 10:11
Trouble running wmakewrong include paths philippose OpenFOAM Installation 1 October 13, 2006 12:50
CFD Career Paths? Wise choice? boyz_99 Main CFD Forum 3 August 29, 2006 14:55
import particle paths Marie Main CFD Forum 0 August 22, 2006 14:26


All times are GMT -4. The time now is 01:54.