Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running a project in Dev c++

I have a folder that contains a few .h and .cpp files along with a makefile. How can I run them in dev C++. I have just started using dev C++, hence, a bit clueless about this. the make file is

 CC=g++
 CV=-I/usr/include/opencv
 CV2=-lml -lcvaux -lhighgui -lcv -lcxcore

 all:
    $(CC) main.cpp HOG.cpp HOGFeaturesOfBlock.cpp $(CV) $(CV2) -o featureExtractor

and I'm getting the error main.cpp, hog.cpp: no such file or directory.

like image 998
MasterWayne Avatar asked Nov 24 '12 19:11

MasterWayne


People also ask

Can Dev-C++ run C program?

Q #3) Can dev-C++ compile C? Answer: Yes. Dev-C++ IDE allows us to write and compile C and C++ programs. As C++ is an enhanced version of C language, the C++ compiler can compile any program written in C language.

How do I start a project in C?

From the menu bar, click File > New > Project. In the Select a wizard window, expand C/C++, select C++ Project, and then click Next. In the Create a C++ Project window, in the Project name field, enter a name for the C++ project. From the Project type list, select Makefile Project/Empty Project, and then click Finish.

Which is better Dev C or Turbo C?

It takes more memory and time to load as compared to Dev C++. Turbo C++ is the compiler from which most of us start our coding life in school/college. Dev C++ is also used for C and CPP Language. The first stable release was in April 2015.


1 Answers

  • Create a new project using File >> New Project. You can ignore the C/C++ options if you use a custom makefile. Also, an empty project will do.
  • Add the source and header files to the new project using Project >> Add to Project or the '+' sign in the middle of the top toolbar.
  • Go to Project >> Project Options (Alt+P) >> Makefile and tick the 'Use custom makefile' option. Then point Dev-C++ to the custom makefile below.

Also, be sure to update your IDE to the following version, which fixes an immense list of bugs compared to the ancient 4.9.9.2 version, ships with GCC 4.6.1 or 4.7.0, and is fully portable: http://sourceforge.net/projects/orwelldevcpp/

like image 196
Orwell Avatar answered Sep 24 '22 05:09

Orwell