What may be the cause of the following error while building the code?
-
unresolved externals: debug/file.exe
File not found debug/file.exe
how can i fix this issue? -
Post the whole log here. With strings you've posted I can say what where is some unresolved external dependencies, to fix you need to resolve them ;)
-
[quote author="AcerExtensa" date="1329468141"]Post the whole log here. With strings you've posted I can say what where is some unresolved external dependencies, to fix you need to resolve them ;) [/quote]
By log did you mean the whole error message. -
when you compile your project compiler shows you this error, right? I need the whole error, not just last lines...
-
[quote author="AcerExtensa" date="1329469222"]when you compile your project compiler shows you this error, right? I need the whole error, not just last lines...[/quote]
compile output:
@Running build steps for project ofi_vc_gui_video_monet...
Configuration unchanged, skipping qmake step.
Starting: "C:\QtSDK\QtCreator\bin\jom.exe"
cd ofi_vc_gui_panel\ && C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile
C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
cd ofi_vc_gui_slider\ && C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile
C:\QtSDK\QtCreator\bin\jom.exe -nologo -j 2 -f Makefile.Debug
link /LIBPATH:"c:\QtSDK\Desktop\Qt\4.7.3\msvc2008\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"debug\ofi_vc_gui_slider.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='' processorArchitecture=''" /OUT:debug\ofi_vc_gui_slider.exe @C:\DOCUME~1\PRATIK~1\LOCALS~1\Temp\ofi_vc_gui_slider.exe.3744.0.jom
qtmaind.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16
debug\ofi_vc_gui_slider.exe : fatal error LNK1120: 1 unresolved externalsjom 1.0.4 - empower your cores
command failed with exit code 1120
command failed with exit code 2
command failed with exit code 2
The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project ofi_vc_gui_video_monet (target: Desktop)
When executing build step 'Make'@ -
Look like where is conflict between definitions of main... Do you use any libraries other than Qt's?
-
and you must use "main" as start point not windows equivalent like WinMain, wmain etc...
-
[quote author="AcerExtensa" date="1329470159"]Look like where is conflict between definitions of main... Do you use any libraries other than Qt's?[/quote]
no i am not using any other library
-
[quote author="AcerExtensa" date="1329470434"]and you must use "main" as start point not windows equivalent like WinMain, wmain etc...[/quote]
actually i was trying to make various subproject with one main function.
-
Make sure you projects not containing a main function are using a lib template, not app.