Originally posted by lramos85
Oh, I'm so dumb I should of just tried that!! What I would do is that I brougth files originally make in Visual C++ and since it sucks it gives errors in Linux, anyways what are the programs that can compile C++ files like Kdevelop or VC++?
There are some IDE, but I believe you'll stay more independently if you're only using g++/make, so it's easier to port to, say, *BSD.
make:takes care of your projects; takes a makefile which defines which files are in your project. Sample:
#Path to the project directory
#Set this if you have .h which are stored in a different location from .c/.cpp
#Name of the executable
PRJOBJECTS=$(PSRC)main.o $(PCLS)class1.o $(PCLS)class2.o /usr/lib/libpthread.so
CFLAGS=-Wall -ggdb -I$(INCLUDEPATH)
$(CC) -o $(BINNAME) $(PRJOBJECTS)
main.o: $(PSRC)main.cpp $(PSRC)main.h
$(CC) $(CFLAGS) -c $(PSRC)main.cpp
class1.o: $(PCLS)class1.cpp $(PCLS)class1.h
$(CC) $(CFLAGS) -c $(PCLS)class1.cpp
class2.o: $(PCLS)class2.cpp $(PCLS)class2.h
$(CC) $(CFLAGS) -c $(PCLS)class2.cpp
rm -f *.o
rm -f a.out
rm -f $(BINNAME)
This expects the makefile in /home/sources/Linux.emptyproject/, main.h/.cpp in ./src, class1/2.h/.cpp in ./src/classes. At the console, just cd
to /home/sources/Linux.emptyproject/ and type make.