Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / VC++ 6.0 - Problem

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. VC++ 6.0 - Problem
#4428
Posted by: 2004-06-11 23:26:18
Hello there!
I tried few times to getting the example in wxWidget started. But it never works! I've done everything what is described in the documentation. Here's the Error:

c:\program files\visual cpp\myprojects\argh\helloworldapp.cpp(1) : fatal error C1083: Cannot open include file: 'wx/wxprec.h': No such file or directory

I really tried it pretty often, except one thing i don't understand:

When you’re going to use makefiles to build wxWindows, make sure you set the WXWIN
environment variable. It should point to the installation directory. An example:
SET WXWIN=c:\wx

Where I have to copy it?! I dunno what else to do... please help me ;(
Message2. Re: VC++ 6.0 - Problem
#4435
Posted by: 2004-06-12 15:30:15

My version is 2.5.1 and this is what i did:

1. Download wxWidget from net
2. Un-compress it into 'C:/wx' (lets say)
3. Open 'wx.dsw' in 'C:\wx\build\msw' folder
4. Compile your wx project with batch compile selected. (I select Release and Debug)
5. Go to 'My Computer->Properties->Advanced->Environment Variables', add 1 line with Name 'WXWIN', Value 'C:/wx' (where u install your wxWidget)


6. Open any project in 'C:/wx/samples' with VC++, go to menu->Option. Add lib path and include into ur VC. Which lib path is "C:/wx/lib" and include path is "C/wx/include"
7. finish.
Message3. Re: VC++ 6.0 - Problem
#4445
Posted by: 2004-06-13 06:15:23
Thank you for your help. but it doesn't work at all -.-
Here's the error:
--------------------Configuration: wxTest2 - Win32 Debug--------------------
Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _toupper already defined in LIBCD.lib(toupper.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strchr already defined in LIBCD.lib(strchr.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _calloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strtol already defined in LIBCD.lib(strtol.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strstr already defined in LIBCD.lib(strstr.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncmp already defined in LIBCD.lib(strncmp.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strtoul already defined in LIBCD.lib(strtol.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __vsnprintf already defined in LIBCD.lib(vsnprint.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _abort already defined in LIBCD.lib(abort.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __snprintf already defined in LIBCD.lib(snprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fflush already defined in LIBCD.lib(fflush.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __CrtSetDbgFlag already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __commit already defined in LIBCD.lib(commit.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __close already defined in LIBCD.lib(close.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __write already defined in LIBCD.lib(write.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __lseek already defined in LIBCD.lib(lseek.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/wxTest2.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

wxTest2.exe - 26 error(s), 1 warning(s)
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2024-12-10  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0