User forums > Help

Build problems with wxW2.8.4

<< < (2/5) > >>

patlecat:
okay Tim, I made all the changes (except for the dll path) like u suggested and still get the exact same errors. And yes I've compiled wxW in Debug too. I find it strange though that I should be adding the wxW directories manually each time I make a new project. They should be stored globally, like in MSVC. But right now, no wxW path is under the global compiler settings only in the projects Search-Directories.



--- Code: ----------------- Build: Release in wixTest ---------------
mingw32-gcc-4.2.0.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2
-march=athlon-xp -O3 -W -pg -g -D_UNICODE -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\include
-IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -Ih:\MinGW\include -c H:\myProjects2\wixTest\wx_pch.h -o
wx_pch.h.gch\Release_wx_pch_h_gch
In file included from H:/wxWidgets-2.8.4/include/wx/wxprec.h:46,
from ./wx_pch.h:14,
from :0:
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: In function 'wxSetCCUnicodeFormat':
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:48: error: expected expression before ':' token
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:45: warning: unused parameter 'hwnd'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: At top level:
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxFont'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxGetCCDefaultFont'
In file included from H:/wxWidgets-2.8.4/include/wx/string.h:55,
from H:/wxWidgets-2.8.4/include/wx/log.h:47,
from H:/wxWidgets-2.8.4/include/wx/msw/private.h:24,
from H:/wxWidgets-2.8.4/include/wx/msw/wrapcdlg.h:18,
from H:/wxWidgets-2.8.4/include/wx/wxprec.h:47,
from ./wx_pch.h:14,
from :0:
H:/wxWidgets-2.8.4/include/wx/buffer.h:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxCharBuffer'
H:/wxWidgets-2.8.4/include/wx/buffer.h:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxWritableCharBuffer'
--- End code ---

stahta01:
Please post the code in
H:\myProjects2\wixTest\wx_pch.h

I am trying to run your command on my computer to duplicate the issue.

Tim S

patlecat:
ok here it is:


--- Code: ---/***************************************************************
 * Name:      wx_pch.h
 * Purpose:   Header to create Pre-Compiled Header (PCH)
 * Author:    Pat Le Cat (patlecat@gmx.net)
 * Created:   2007-05-20
 * Copyright: Pat Le Cat (winterthur.grunliberale.ch)
 * License:   
 **************************************************************/

#ifndef WX_PCH_H_INCLUDED
#define WX_PCH_H_INCLUDED

// basic wxWidgets headers
#include <wx/wxprec.h>

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#ifdef WX_PRECOMP
// put here all your rarely-changing header files
#endif // WX_PRECOMP

#endif // WX_PCH_H_INCLUDED

--- End code ---

stahta01:
This may be wrong "-IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu"

replace "gcc_lib" with "gcc_dll" unless you mean to use static wxWidgets.

What wxWidgets are you trying to use?
static or DLL
Unicode or ANSI
Monolithic or Multilib
Debug or Release.

Note, I duplicated the error you are getting, looking for cause.
Tim S

patlecat:
yes i use static built wxW, no DLLs, I multilib and release (but debug doesnt work either).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version