If I run "make clean" then everything gets removed. c linux makefile linux-kernel includeyamlboostlinux,c,linux,makefile,linux-kernel,linux-device-driver,C,Linux,Makefile,Linux Kernel,Linux Device Driver,linux. I included a couple rm -f commands to a clean: tag, but they don't delete the files written there when i run "make" from the terminal. I managed to make it work by changing the line ar rs genericdfs.a genericdfs.cĪnd updating final linkage line to libgenericdfs.aīut now there is a different problem. a library which was created? I suppose its not that complicated but for the life of me I cannot get it to work In this Video we will see How to use make command and make file and How to make SIMPLE C++ Makefile. Genericdfs.a: error adding symbols: Archive has no index run ranlib to add oneĬould anyone please explain how I link to the. A makefile is a specially formatted text file that a UNI. I tried shifting things around but nothing seems to work, another error which appeared when I put -L. This makefile however doesn't work, there seems to be a problem with the linkage to the library as this is the error that is being returned: We were given next to nothing of an explanation as how to write these makefiles so all I wrote above was according to makefile tutorials I found online. a library which should be linked to the main C file at the linkage operation. SudTree.c includes sudTree.h and genericdfs.h as well. OK so the main C file is sudSolver which has includes for sudTree.h and math.h (hence the -lm) SudSolver: sudSolver.o sudTree.o genericdfs.a SudSolver.o: sudSolver.c sudTree.h genericdfs.h Here is my makefile: all: genericdfs.a sudSolver I now have to make sure it runs OK on Linux as well, and need to create a makefile for it (it is part of the assignment). I have a C programming exercise, which I have written (and runs perfectly) in Visual Studio on Windows.
0 Comments
Leave a Reply. |