problem with cv.h header file

asked 2013-12-31 05:08:55 -0600

mohsen gravatar image

Hi i'm using Visual Studio 2012 and opencv 2.47 wen i add "#include<opencv\cv.h>" visual studio show me an error and wont compile my program correctly it's okay when i use other header file and i have this problem only with cv.h

Thanks in advance!

edit retag flag offensive close merge delete

Comments

please copy the error, otherwise we have no idea to what it is related to

justas gravatar imagejustas ( 2013-12-31 06:19:41 -0600 )edit

when i want to run it it show this error there were build errors would you like to continue and run the last successful build

and if i press yes it show

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\Mohsen\Desktop\aa1\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 'ConsoleApplication1.exe' (Win32): Loaded 'C:\OpenCv\opencv\build\x86\vc11\bin\opencv_highgui247d.dll'. Cannot find or open the PDB file. 'ConsoleApplication1.exe' (

mohsen gravatar imagemohsen ( 2013-12-31 06:55:58 -0600 )edit
1

Please show the build errors. If the error is due to the include statement, you probably do not have the include directory path properly set up. If you post the path to opencv include directory, we can give you the exact settings.

unxnut gravatar imageunxnut ( 2014-01-01 14:55:43 -0600 )edit

i set these in property page for both release and debug mod additional include directories : $(OPENCV_DIR)....\include additional library directories: $(OPENCV_DIR)\lib additional dependencies: debug: opencv_core247d.lib opencv_imgproc247d.lib opencv_highgui247d.lib opencv_ml247d.lib opencv_video247d.lib opencv_features2d247d.lib opencv_calib3d247d.lib opencv_objdetect247d.lib opencv_contrib247d.lib opencv_legacy247d.lib opencv_flann247d.lib

i omit "d" for release mod

and path of my include directory is C:\OpenCv\opencv\build\include\opencv

bui erro 1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------ 1> ConsoleApplication1.cpp 1>c:\opencv\opencv\build\include\opencv2\flann\logger.h(66): error C4996: 'fopen': This functio

mohsen gravatar imagemohsen ( 2014-01-02 06:04:02 -0600 )edit