Page 1 of 1

Compilation problem Win64 VisualStudio2010

Posted: Wed Jun 04, 2014 9:05 pm
by candrastefan
Hello everyone,

Please help me with the following error:

Code: Select all

....
9>  Generating Code...
9>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup
....
11>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------
11>Project not selected to build for this solution configuration 
========== Build: 9 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========
I have the following spec:
- Windows 7 Pro 64bit
- MS Visual Studio 2010 x64
- Qt 4.8.0
- CMake 2.8.12 (no plugin/CCViewer selected in the configuration option)

I followed the compilation wiki and used Visual Studio Win64 as the generator. Then, I opened the CloudCompareProjects solution, built it, and the above error came up. How do I solve this?

Re: Compilation problem Win64 VisualStudio2010

Posted: Wed Jun 04, 2014 10:18 pm
by daniel
That's odd indeed... Which project failed exactly? (should be either CloudCompare or ccViewer)

Re: Compilation problem Win64 VisualStudio2010

Posted: Mon Jun 16, 2014 11:12 pm
by candrastefan
It was the CloudCompare.

Re: Compilation problem Win64 VisualStudio2010

Posted: Tue Jun 17, 2014 6:04 am
by daniel
That's odd, I can't reproduce the error (even on a new machine with Visual 2010 Express).

I guess there's no other errors? Can you post the CMake view with the Qt section fully visible?

Re: Compilation problem Win64 VisualStudio2010

Posted: Tue Jun 24, 2014 5:53 pm
by candrastefan
There was no other error. The problem was in a project configuration. I found a solution here:http://stackoverflow.com/questions/6626 ... n-function which solved the problem :). Hopefully this helps

Re: Compilation problem Win64 VisualStudio2010

Posted: Tue Jun 24, 2014 6:59 pm
by daniel
That's interesting... and puzzling (as CMake shouldn't do this kind of error - and it doesn't do it on my side...).

Thanks for the feedback anyway!