Can't get a simple copy of Hello.c to build into my own Visual Studio 2015 project
Added by Bart Luyckx over 7 years ago
Hi,
I made a new project in Visual Studio and added a copy of hello.c from the Wt examples (renamed the copy to hello.cpp) but the build of my project fails.
I am using Visual Studio 2015 Community Edition on Windows 8.1 64-bit.
I downloaded and installed the latest Boost prebuilt windows binary: "boost_1_62_0-msvc-14.0-64.exe"
I also downloaded and installed the latest Wt binary built: "Wt-3.3.6-msvs2015-Windows-x64-SDK.exe"
Added both the Wt and Boost include and library directories to my "VC Directories" paths
This is the BUILD OUTPUT (for complete output, see the attachment files)
...
1>hello.obj : error LNK2001: unresolved external symbol "_declspec(dllimport) intcdecl Wt::WRun(int,char * *,class boost::function<class Wt::WApplication*cdecl(class Wt::WEnvironment const &)>)\" (imp?WRunWt@
YAHHPEAPEADV?$function$$A6APEAVWApplication@Wt@
AEBVWEnvironment2@
Zboost@
Z)
WApplication
1>hello.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __cdecl Wt::WApplication::handleJavaScriptError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?handleJavaScriptErrorWt@
MEAAXAEBV?$basic_stringDU?$char\_traits@D@std@
V?$allocatorD@2@
std``Z)
WApplication
1>hello.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) protected: virtual void __cdecl Wt::WApplication::unload(void)" (__imp_?unloadWt@
MEAAXXZ)
1>hello.obj : error LNK2001: unresolved external symbol "_declspec(dllimport) protected: virtual voidcdecl Wt::WApplication::enableAjax(void)\" (imp?enableAjaxWApplication@Wt@
MEAAXXZ)
1>hello.obj : error LNK2001: unresolved external symbol "_declspec(dllimport) protected: virtual boolcdecl Wt::WApplication::isExposed(class Wt::WWidget *)const \" (imp?isExposedWApplication@Wt@
MEBA_NPEAVWWidget2@
Z)
1>hello.obj : error LNK2001: unresolved external symbol "_declspec(dllimport) protected: virtual voidcdecl Wt::WApplication::notify(class Wt::WEvent const &)\" (imp?notifyWApplication@Wt@
MEAAXAEBVWEvent2@
Z)
...
...
Your help will be much appreciated,
Bart
build_x64_release_output.txt (93.4 KB) build_x64_release_output.txt | Text file showing complete build output from inside Visual Studio | ||
Hello_VisualStudioWin32CmdLineProject.jpg (129 KB) Hello_VisualStudioWin32CmdLineProject.jpg | Image showing the project inside Visual Studio | ||
Hello_VisualStudio_Vcpp_directories.jpg (79.9 KB) Hello_VisualStudio_Vcpp_directories.jpg | VC++ include and library directories added to the project property pages |
Replies (1)
RE: Can't get a simple copy of Hello.c to build into my own Visual Studio 2015 project - Added by Bart Luyckx over 7 years ago
Has anyone tested this?
Is it too obvious?
Has it been answered before? (searched the forum and couldn't find it)
Anybody?