Compilation problem Win64 VisualStudio2010

All about Windows versions
Post Reply
candrastefan
Posts: 8
Joined: Wed Jun 04, 2014 8:51 pm

Compilation problem Win64 VisualStudio2010

Post 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?
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Compilation problem Win64 VisualStudio2010

Post by daniel »

That's odd indeed... Which project failed exactly? (should be either CloudCompare or ccViewer)
Daniel, CloudCompare admin
candrastefan
Posts: 8
Joined: Wed Jun 04, 2014 8:51 pm

Re: Compilation problem Win64 VisualStudio2010

Post by candrastefan »

It was the CloudCompare.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Compilation problem Win64 VisualStudio2010

Post 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?
Daniel, CloudCompare admin
candrastefan
Posts: 8
Joined: Wed Jun 04, 2014 8:51 pm

Re: Compilation problem Win64 VisualStudio2010

Post 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
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Compilation problem Win64 VisualStudio2010

Post 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!
Daniel, CloudCompare admin
Post Reply