Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 13-02-2009
Member
 
Join Date: Oct 2008
Posts: 96
Using g++ command

Hello All,

I am trying to understand the command g + +, and I have questions:

-L option is used to tell the compiler or libraries fetch and option-giving the names of bookstores ... Finally this is what I understand.

I run a following command :

Quote:
g++ main.cpp -I$(INCLUDE) -L$(LIB_DIR) -llibsystemc.a ......
Indeed the dots are the names of all libraries that are in the directory LIB_DIR
and it does not work !!!!!!!!!!

but it works in SystemC (-lsystemc).

so how can I make g++ work?

Thank you
Reply With Quote
  #2  
Old 13-02-2009
Member
 
Join Date: Mar 2008
Posts: 198
Re: Using g++ command

Hello,

g++ does not include libraries in the directories specified with-L. It also sought in the standard locations, such as / usr / lib for example.

Regarding the -l option, it must indicate so -lsystemc g++ links the program with the library libsystemc.a (or libsystemc.so).

For more info refer this link : http://www.cs.bu.edu/fac/gkollios/cs113/Usingg++.html
Reply With Quote
  #3  
Old 13-02-2009
Member
 
Join Date: Oct 2008
Posts: 96
Re: Using g++ command

Ok thanks for the help .
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Using g++ command"
Thread Thread Starter Forum Replies Last Post
How to boost command points in Command & Conquer Tiberium Alliances? Charu Sharma Video Games 2 21-03-2012 03:23 AM
Problem: Command Line Option Syntax Error. Type Command /? For Help Nadeem MediaCenter 3 03-09-2009 05:41 PM
Linux history command and fc command Alkesh jain Operating Systems 3 26-05-2009 07:53 PM
Command Line Ren (Rename) command broken? SixSigmaGuy Vista Help 2 18-05-2008 03:30 PM
autorun.inf - shell\..\command with command line parameter doesn'twork kakii Windows XP Support 1 18-05-2007 01:24 AM


All times are GMT +5.5. The time now is 01:29 AM.