Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / strdup not found

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. strdup not found
#3380
Posted by: 2004-02-15 22:30:47
Hello,

I am very new in wxWindows and Dev-Cpp. I use Dev-Cpp 2.4.9.8 and wxWindows 2.4.2. I heve installed imagelib-2.DevPack and wx_windows-2.4.2.DevPack. Using Dev-Cpp I can create new wxWindows Project, but when I try compile this project I get message:
62 C:binmsys1.0localincludewxstring.h
In file included from C:/bin/msys/1.0/local/include/wx/string.h
from ...
from ...
from ...
from c:/bin/Dev-Cpp/include/wx/wx.h
from basic.cpp
98 c:binDev-Cppincludewxbuffer.h
`strdup' undeclared (first use this

basic.cpp - this is the name of my application.

I found strdup function only in wx_cw_cm.h file, which is "only for builds with Metrowerks CodeWarrior"

I have also installed
MinGW in c:binMinGW
msys in c:binmsys
wxWinwdos-2.4.2 in c:binwxWindows

and of course Dev-Cpp in c:binDev-Cpp

Please help, what do I wrog?

Tomek
Message2. Re: strdup not found
#3392
Posted by: upCASE 2004-02-18 19:36:47
Hi!
Maybe try compiling the sources for wxWindows yourself. Check here for a little tut I wrote a while ago:
http://upcase.malteser-gl.de

Be sure that you use the correct defines for your project, otherwise this will lead to freaky error messages, because build in types will be typedef'ed and gcc doesn't think this is funny :)

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2022-8-18  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0