21 Topics
| |
Hi I am creating Makefile and it gives me following error Makefile:124: *** unterminated call to function `foreach': missing `)'. Stop. The Makefile around line 124 is .PHONY: popiso popiso: isolinux_cfg $(foreach x,$(_$(country)_pops_roles), pop_iso_$(x)) $(isomedia) @echo $@ @echo @echo allhostname $(allhostname) @echo @echo @echo allnetwork_setup $(allnetwork_setup) @sudo cp $(addsuffix .ks.cfg,$(allhostname)) … | |
| Hello I have downloaded a source code written in C. There I found a Makefile file . Can you tell me how to run that "makefile" file from command line ? thank you |
hi. i have written a program in c and also a makefile for it but i have a repetitive error: /usr/bin/ld:4.txt: file format not recognized; treating as linker script /usr/bin/ld:4.txt:1: syntax error here is makefile code: CC=gcc test2 : test2.c $(CC) test2.c 4.txt 5.txt 6.txt -I -lpthread -lrt -o test2 | |
When I run my makefile I get this error: ** No rule to make target `videofeatures.cpp', needed by `videofeatures.o'. Stop. Here is my makefile CC = gcc CPP = g++ CFLAGS += BIN_DIR = ../bin INC_DIR = ../include LIB_DIR = ../lib INCL = -I$(INC_DIR) `pkg-config --cflags opencv` LIBS = -L$(LIB_DIR) … | |
I have several files to include from a subfolder and I just can't get this to work. I'm propably missing something here... The Makefile and .cpp with main function are located at /path/to/ and files to be included are at /path/to/src/buffer and /path/to/src/hash. Both of these folders have .cpp and … | |
Hi all, To begin, I'm not certain this is the proper place to start this question, but I believe this to be a linux-linker related error rather than a code based one. I've also searched far and wide for a solution online, but others have solved the problem simply include … | |
Hi Im not sure if this question belongs in the form so sorry if it doesn't. Here is my question, in a cs class of mine we have to write a make file that compiles the two seperate programs in the project. The only problem is that none of the … | |
So I have an assignment where I am supposed to create an oop that will run on a provided Unix server. I have a Mac so when I run the makefile in Terminal, I don't get any errors. But when I try to run the makefile in the provided Unix … | |
What is the role of makefile in a program? | |
Hi there, I am trying to compile devcpp project that contains one source file helloworld.cpp [CODE] #include <iostream> using namespace std; int main () { cout << "Hello World!"; system("PAUSE"); return 0; }[/CODE] I get this error: [ICODE] C:\Dev-Cpp\Makefile.win [Build Error] [helloworld.o] Error 1 [/ICODE] Compile log is as follows: … | |
I was writing a makefile for a web interface program that installs the cgi scripts to a (Linux) OS. The makefile works fine, but it needs to be able to install to different directories for different distributions (Fedora, Ubuntu). On Fedora, the scripts need to go to /var/www/cgi-bin and on … | |
Hi, I am trying to create a make file for a java project. It has a directory structure look like this: src folder [INDENT]-package1[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package2[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package3[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] [INDENT]-package4[/INDENT] [INDENT][INDENT]-java files[/INDENT][/INDENT] I am new to makefile, but tried to create one according to some tutorials on … | |
Hello, world! This is my first post on DaniWeb, though I have frequented it quite often. I'm using gcc and make (on Ubuntu 10.10) with GVim for creating a foundation library in C. Within my code I've built in rudimentary profiling and assertion policies that are enabled through a symbolic … | |
Hi, I can not create executable code by using a makefile.How can I generate the executable code.I wrote this lines into my makefile and in the terminal I wrote make but I can not do it.Please help me. myprog : myprog.o mylibrary.o gcc myprog.o mylibrary.o -o myprog myprog.o : myprog.c … | |
Dear friends, I am trying to compile the linux kernel 2.6.33. I need to incorporate a patch into this. The patch creates a directory and 3 src files as below, [CODE] ~/linux-2.6.33/net/core/[B]netchannel[/B] ~/linux-2.6.33/net/core/[B]netchannel/netchannel.c[/B] ~/linux-2.6.33/net/core/[B]netchannel/storage.c[/B] ~/linux-2.6.33/net/core/[B]netchannel/users.c[/B] [/CODE] Now, among the above users.c file uses a function named 'get_empty_filp()', which is defined … | |
Hello everyone. I have an error in my makefile. When i execute it on the terminal in linux, it gives me the following errors [CODE]mkab@mkab-ThinkPad-SL400:~/Desktop/TP 5/src$ make test gcc -c prog2.c gcc *.o -o test prog2.o: In function `tester_supprimer': prog2.c:(.text+0x1c): undefined reference to `ajouter' prog2.c:(.text+0x32): undefined reference to `ajouter' prog2.c:(.text+0x48): … | |
I want to know how to create a makefile so that I dont have to type in the files I am linking together. Also is it possible to use a make file which will run two files. I have a fraction.h file and fraction.cxx (implentation file) I have a main.cpp … | |
I chopped down my make file so I can compile a C++ program with very few, but some flags set to see if I can determine if they are working. The following is my make file section on C++ flags: [CODE]# Common compiler flags CFLAGS = -mips1 -Wa,-non_shared \ -mno-abicalls … | |
I am using Ubuntu-gcc and have a large C code which uses routines from numerical recipes and GNU scientific library. It needs a compilation compilation because each library, i.e. nr and GNUsl, needs its own flags for gcc. Therefore I use a makefile. It works well when the code is … | |
I'm using a cross-compiler that generates MIPS binaries from c++ (mipseb-linux-g++). What I want to do is tell the compiler to use a specific ISA (namely MIPS I). From what I can tell this is a machine option that should be easily configurable. I've tried changing the option in my … | |
Hi, I am a total newbie when it comes to makefiles and now I'm in a need of one. I have a directory structure as follows: [CODE] Project_root/Makefile Project_root/src/ Project_root/src/widgets/ Project_root/include/ Project_root/include/widgets/ [/CODE] Each directory contains multiple source/header files. I need to build a shared library out of this directory. … |
The End.