Results 1 to 3 of 3

Thread: Using g++ command

  1. #1
    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 :

    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

  2. #2
    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

  3. #3
    Join Date
    Oct 2008
    Posts
    96

    Re: Using g++ command

    Ok thanks for the help .

Similar Threads

  1. Replies: 2
    Last Post: 21-03-2012, 03:23 AM
  2. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  3. Linux history command and fc command
    By Alkesh jain in forum Operating Systems
    Replies: 3
    Last Post: 26-05-2009, 07:53 PM
  4. Command Line Ren (Rename) command broken?
    By SixSigmaGuy in forum Vista Help
    Replies: 2
    Last Post: 18-05-2008, 03:30 PM
  5. Replies: 1
    Last Post: 18-05-2007, 01:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,582,174.23206 seconds with 17 queries