ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm no good with makefiles yet. Nonetheless, I have the source for a program that I would like to build and a makefile that worked with previous versions of the program. But I get an error pretty fast saying: *** No rule to make target `main.o', needed by `SDIFEdit'.
Here is the guts of the makefile. main.cpp is in ../source.:
MAKE = make
PROJECTDIR = $(PWD)
CXX = g++
PREFIX=/usr/local
Since the object files don't already exist within the directory, the Makefile needs to know how to make them. In other words, for each object file, you need a rule telling how to compile it from source.
I would assume this is the rule, saying look for a .cpp file with the same name, then abide the CXX flags already set and do what -c$< means. It obviously isn't what gcc is looking for though.
I hope to get this fixed soon, since this program is essential to work I'm doing in school. Likewise, I hope to learn how to use makefiles soon, since they cause my eyes to squint alot right now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.