|
|
Home » Community » Newbie corner » error LNK2019 when using CtrlLib/CtrlLib.h
error LNK2019 when using CtrlLib/CtrlLib.h [message #37603] |
Thu, 25 October 2012 03:09  |
DrinkWatah
Messages: 12 Registered: October 2012 Location: Cali
|
Promising Member |
|
|
error LNK2019: unresolved external symbol "void * __cdecl Upp::MemoryAlloc(unsigned int)" (?MemoryAlloc@Upp@@YAPAXI@Z) referenced in function "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
main.obj : error LNK2019: unresolved external symbol "void __cdecl Upp::MemoryFree(void *)" (?MemoryFree@Upp@@YAXPAX@Z) referenced in function "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function__tmainCRTStartup
I'm running the following GUI tutorial
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN{
PromptOK("Hello world");
}
While troubleshooting, I also get an error stating that namespace UPP does not exist
what am I doing wrong?
thanks
|
|
|
|
|
|
|
Re: error LNK2019 when using CtrlLib/CtrlLib.h [message #37611 is a reply to message #37603] |
Fri, 26 October 2012 00:42   |
DrinkWatah
Messages: 12 Registered: October 2012 Location: Cali
|
Promising Member |
|
|
Hey BioBytes, thanks for the reply
For clarification, in a span of a few minutes, I solved one problem and then encountered another. The first problem, getting the error LNK2019, I solved by simply adding the Ctrl package. But then when I attempted to build, theIDE would always crash with the optimal build option
I wasn't sure whether both problems were related, so when I replied with my solution, I did not make clear which problem the solution satisfied
I found it strange that anytime I built the program with optimal option, theIDE would crash. Even with the basic tutorial code. Once I made that debug option switch, it worked
So I created a new project. Set the configuration for optimal build, it took awhile, but it now works. I'm not sure why theIDE was crashing before however
[Updated on: Fri, 26 October 2012 00:43] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 09:29:21 CEST 2025
Total time taken to generate the page: 0.01300 seconds
|
|
|