unresolved external symbol _wWinMain@16
-
Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.
-
Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.
Raghavendra Pise wrote:
I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS
You should also include
UNICODE
and_UNICODE
in these defintions.
Nibu thomas A Developer Programming tips[^] My site[^]
-
Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.
Raghavendra Pise wrote:
WinMain
You are obviously missing this function into your build, e.g. there is a missing file you need to #include (maybe #include <windows.h> ?)
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.
Do you want to use the MBCS or Unicode character set? Your preprocessor settings say MBCS but you're using the Unicode entry point.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Hi Friends, I am new to this discussion. I am facing Linker error while building my project. Error is:Creating library C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.lib and object C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.exp LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16 C:\Program Files\Quark\QuarkDDS 4\QuarkDDS\XTension\OptimakerSXT2.xnt : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS 2) Link-> Output->wWinMainCRTStartup. Inspite of these settings i am getting Above errors.Anybody knows, please reply me.
-
Raghavendra Pise wrote:
WinMain
You are obviously missing this function into your build, e.g. there is a missing file you need to #include (maybe #include <windows.h> ?)
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
Raghavendra Pise wrote:
WinMain
You are obviously missing this function into your build, e.g. there is a missing file you need to #include (maybe #include <windows.h> ?)
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Thaks for your feedback. I am already using this, #include header file in my project. Is there any other header file to support WINDOWS?
-
Raghavendra Pise wrote:
I have done settings like: 1) c/c++ Tab->Preproccessor->WIN32,_DEBUG,_WINDOWS,_MBCS
You should also include
UNICODE
and_UNICODE
in these defintions.
Nibu thomas A Developer Programming tips[^] My site[^]
If i did, i will get more errors.Is there any other idea?
-
Do you want to use the MBCS or Unicode character set? Your preprocessor settings say MBCS but you're using the Unicode entry point.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Thanks for your feedback.I am Using MBCS not Unicode,Can u plz tell me which Entry point i should use in LInk->Output Option? Please send reply,if u know.