Thread: Compiler linking tutorial

  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131

    Compiler linking tutorial

    Hello.

    Does anyone know a good tutorial about the compile process - if to be more exact, I need a knowledge of .o files and the -l linking option.
    I know that .o files are in machine language, but I don't know how to use the -l option or how to make files that I can but after the -l option.

    Please tell me, or give me a link.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    it depends on your compiler -- every compiler is different, there is no standardized way to do it.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131
    I am using the compiler that comes with DevC++ 4.9.9.1 (or was it 4.9.9.2)
    But please give me a general idea about -l option. Make an examplefile too please.

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131
    Thanks for those links. the 1st two links were the ones I have seen before and they are not a big use to me, because they don't bring me an example. and the 2 bottom ones are just plain theory - no compiler-specific examples.

  6. #6
    Registered User
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    131
    I got a good tutorial with examples.

    I uploaded it here: www.steadyearner.com/search.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  2. External Functions and Compiler linking issues
    By collymitch in forum C Programming
    Replies: 2
    Last Post: 04-07-2005, 04:17 PM
  3. Dev C++ Compiler, Indentation?
    By Zeusbwr in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2004, 06:13 AM
  4. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  5. Alternative win32 compiler? And linking asm libs?
    By JMB in forum C++ Programming
    Replies: 4
    Last Post: 10-11-2002, 01:22 PM