Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I've been trying to figure out how to use make and makefile to compile and link some .cpp/.h. All i seem to find on google says to read the ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    24

    makefile

    Hello, I've been trying to figure out how to use make and makefile to compile and link some .cpp/.h. All i seem to find on google says to read the README for the software. But this is my own created c++ project. Im just looking for a simple makefile for my own .cpp/.h files( about 20 total).

    I have tried using 2 different makefile "examples" as a template, but neither worked. I am getting error saying "file1.cpp: no newline character at end of file". or something to that degree.

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    24
    well i figured out why im getting the error no newline.
    can anyone point to a good make/makefile tutorial?

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149

  4. #4
    Just Joined!
    Join Date
    Sep 2009
    Posts
    24
    turns out its quite simple, somehow one of my files got deleted caused me lots-o mysterious problems. i got it workin now

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6
    obviously your cpp file is not correct for compiling,check it ,modify and make again

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    In the morning I was reading about Autoconf and Automake, and found this Link :
    http://www.lugod.org/presentations/a.../autotools.pdf

    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...