在Dev c ++中运行项目 [英] running a project in Dev c++
问题描述
我有一个文件夹,其中包含一些.h和.cpp文件以及一个makefile.如何在dev C ++中运行它们.我刚刚开始使用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
我收到错误main.cpp,hog.cpp:没有这样的文件或目录.
and I'm getting the error main.cpp, hog.cpp: no such file or directory.
推荐答案
- 使用文件>>新建项目创建一个新项目.如果使用自定义的生成文件,则可以忽略C/C ++选项.另外,一个空项目也可以.
- 使用项目" >>添加到项目"或顶部工具栏中间的"+"符号,将源文件和头文件添加到新项目中.
- 转到项目>>项目选项(Alt + P)>>生成文件,然后勾选使用自定义生成文件"选项.然后将Dev-C ++指向下面的自定义makefile.
此外,请确保将您的IDE更新到以下版本,该版本与GCC 4.6.1或4.7.0附带的古老4.9.9.2版本相比修复了许多错误,并且完全可移植:
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/
这篇关于在Dev c ++中运行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!