Search Results

Search: Posts Made By: pintu1228
3,322
Posted By pintu1228
output: fr.o vw.o ac.o pg.o gq.o g++ -o fr.o...
output: fr.o vw.o ac.o pg.o gq.o
g++ -o fr.o gq.o vw.o ac.o pg.o output

fr.o: fr.cc pg.h
g++ -c fr.cc


vw.o: vw.cc ac.h
g++ -c vw.cc


ac.o: ac.cc ac.h pg.h
g++ -c ac.cc


pg.o:...
3,322
Posted By pintu1228
I got most of working, just need to ask a...
I got most of working, just need to ask a question.

I am trying to create the gq.o file but the bb.h is located in another directory with assign1. So its like /assign1/includes/bb.h, how do I...
3,322
Posted By pintu1228
Create Makefile from source files
1. The problem statement, all variables and given/known data:

Create a makefile for a set of source files. Several sources files are given but we are not allowed to modify them. The goal is to...
Forum: Programming 09-05-2015
2,556
Posted By pintu1228
here are the errors I get when I type in make at...
here are the errors I get when I type in make at the command line:

g++ -o frprog fr.o
fr.o: In function `main':
fr.cc:(.text+0x21): undefined reference to `f1()'
collect2: error: ld returned 1...
Forum: Programming 09-05-2015
2,556
Posted By pintu1228
We are not allowed to modify any of the source...
We are not allowed to modify any of the source files
Forum: Programming 09-05-2015
2,556
Posted By pintu1228
Here is make file: all: frprog gqprog...
Here is make file:


all: frprog gqprog vwprog

frprog: fr.o
g++ -o frprog fr.o

fr.o: fr.cc pg.h
g++ -c fr.cc

gqprog: gq.o
g++ -o gqprog gq.o

gq.o: gq.cc ac.h...
Forum: Programming 09-05-2015
2,556
Posted By pintu1228
ac.o: ac.cc ac.h pg.h g++ -c ac.cc ...
ac.o: ac.cc ac.h pg.h
g++ -c ac.cc

frprog: fr.o
g++ -o frprog fr.o

fr.o: fr.cc pg.h
g++ -c fr.cc



gqprog: gq.o
g++ -o gqprog gq.o

gq.o: gq.cc ac.h...
Forum: Programming 09-03-2015
2,556
Posted By pintu1228
First time programmer needs Help with Makefiles
I am trying to practice to create Makefiles. The goal is to create a makefile such that if a change is made to any of the source code files, the project can be rebuilt by typing make at the command...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy