LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2006, 06:24 PM   #1
totaljj
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
about include in gcc.


SDIR= ..
BDIR= $(HOME)/pvm3/bin
XDIR= $(BDIR)/$(PVM_ARCH)
VPATH= $(SDIR)

GA_INC_DIR=$(SDIR)/../..
GA_LIB_DIR=$(SDIR)/../../ga

INC_DIRS= -I$(SDIR)/. -I$(GA_INC_DIR) -I${PVM_ROOT}/include
LIB_DIRS= -L$(SDIR)/. -L$(GA_LIB_DIR) -L${PVM_ROOT}/lib/${PVM_ARCH}
LIBS= -lpvm3 -lga -lm

I've declared PVM_ROOT in .profile.
When I do make
it doesn't find pvm3.h which is in
$HOME/pvm3/include
Also the gaconfig.h is not found which is in
/galib246/ga

in
$HOME/galib246/examples/pvmind
below
SDIR= ..
(SDIR)/../../ga
shouldn't it go to $HOME/ga
other than galib/246/ga?
 
Old 11-22-2006, 08:12 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
Hi,

#1. bash reads .bash_profile .bash_login .profile, in this order and executes first exist and executable one only. .profile has least priority.

#2. Also, these need to be environmental variable, (not shell variable)

#3. I need more time to figure out your last question.

Happy Penguins!!
 
Old 11-22-2006, 09:38 AM   #3
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Don't you want to change those curly braces to regular braces?
 
  


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
How to get gcc to find my 'include' and 'lib'? renshao Linux - General 4 03-11-2006 07:02 AM
Where is my other gcc include files ?? DevandeAsk Ubuntu 1 01-30-2006 08:04 AM
gcc include apocolpse Programming 6 11-03-2004 01:36 PM
gcc on 9.1 include problem skywarp Slackware 3 06-04-2004 10:05 PM
GCC include path. jwilson Linux - General 1 04-02-2001 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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