Unix/Linux Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

First time programmer needs Help with Makefiles

Programming


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 09-05-2015   -   Original Discussion by pintu1228
pintu1228's Unix or Linux Image
pintu1228 pintu1228 is offline
Registered User
 
Join Date: Sep 2015
Last Activity: 6 September 2015, 12:38 PM EDT
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
here are the errors I get when I type in make at the command line:


Code:
g++ -o frprog fr.o
fr.o: In function `main':
fr.cc:(.text+0x21): undefined reference to `f1()'
collect2: error: ld returned 1 exit status
Makefile:4: recipe for target 'frprog' failed
make: *** [frprog] Error 1
make: *** No rule to make target 'bb.h', needed by 'gq.o'.
g++ -o vwprog vw.o
vw.o: In function `main':
vw.cc:(.text+0x21): undefined reference to `x2()'
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'vwprog' failed
make: *** [vwprog] Error 1
make: Target 'all' not remade because of errors.


Last edited by Don Cragun; 09-05-2015 at 01:08 AM.. Reason: Add CODE and ICODE tags again.
Sponsored Links
    #9  
Old Unix and Linux 09-05-2015   -   Original Discussion by pintu1228
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 12 December 2017, 6:43 AM EST
Location: San Jose, CA, USA
Posts: 10,769
Thanks: 590
Thanked 3,769 Times in 3,217 Posts
Moderator's Comments:
First time programmer needs Help with Makefiles If you are unable to change any of your source files, I have to assume this is a homework assignment. Homework assignments must be filed in the Homework and Coursework Forum and must include a completely filled out homework template as explained in the infraction notice you received by private mail.

Please refile your assignment in the correct forum with the required homework template.

This thread is closed
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Makefiles for different programs kristinu Programming 1 01-03-2013 06:56 PM
makefiles klam UNIX for Advanced & Expert Users 0 09-23-2006 03:56 PM
How can I print variables im using in makefiles? umen Shell Programming and Scripting 1 05-07-2006 10:57 AM
makefiles in a directory and subdirectories benjie_asu UNIX for Dummies Questions & Answers 0 10-28-2005 02:34 PM
Combining makefiles Dan Rooney UNIX for Advanced & Expert Users 4 05-07-2004 09:19 AM



All times are GMT -4. The time now is 02:00 PM.