problem upgrading  [SOLVED]

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Maori
Earned some good credits
Earned some good credits
Posts: 112
Joined: Thu Jul 26, 2007 11:15 am
Location: woolwich UK

problem upgrading

Postby Maori » Wed Nov 21, 2007 7:49 pm

Hi Guys

i installed 2.8.6 today and after a while i manged to get it all compiling in vs2005 ok even a simple test app i made compiles and works.

but when i copy over the app that i was in the middle of making .cpp and .h files into the solution it brings up fatal errors on the code that was not there in vs2003
example

error C2227: left of '->SetColLabelValue' must point to class/struct/union/generic type
type is ''unknown-type''

syntax error : missing ';' before '*'


any ideas ?

TIA

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Postby Jorg » Thu Nov 22, 2007 8:19 am

Pass some code where it gives this error, both a few lines before and after so we can see the context of what you're intending to do.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

Maori
Earned some good credits
Earned some good credits
Posts: 112
Joined: Thu Jul 26, 2007 11:15 am
Location: woolwich UK

Postby Maori » Thu Nov 22, 2007 10:12 am

HIya Jorg

most of the errors come from the dde.h file strangly as thats part of wx itself

some of the erros dde.h give are

Code: Select all

error C2143: syntax error : missing ';' before '&'   x:\wxwidgets-2.8.6\include\wx\msw\dde.h   100
error C2433: 'wxDDEServer::wxDDEConnectionList' : 'inline' not permitted on data declarations   x:\wxwidgets-2.8.6\include\wx\msw\dde.h   100   
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   x:\wxwidgets-2.8.6\include\wx\msw\dde.h   100
error C2059: syntax error : ')'   x:\wxwidgets-2.8.6\include\wx\msw\dde.h   102
error C2433: 'wxDDEClient::wxDDEConnectionList' : 'inline' not permitted on data declarations   x:\wxwidgets-2.8.6\include\wx\msw\dde.h   130






but in my code which works in vs2003 and i just copied over to vs2005 project heres some of the errors and lines

Code: Select all

 wxGrid   *MyGrid;

gives errors
error C2143: syntax error : missing ';' before '*'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int



Code: Select all

MyGrid = new wxGrid( this,
                       wxID_ANY,
                       wxPoint( 120, 80 ),
                       wxSize( 550, 250) );

MyGrid->CreateGrid( 80, 6 );


error C2065: 'PilotGrid' : undeclared identifier
error C2061: syntax error : identifier 'wxGrid'
error C2227: left of '->CreateGrid' must point to class/struct/union/generic type

Maori
Earned some good credits
Earned some good credits
Posts: 112
Joined: Thu Jul 26, 2007 11:15 am
Location: woolwich UK

Postby Maori » Thu Nov 22, 2007 10:29 am

i think there may be a problem with my build

i followed the video but batch build may have not worked allthough said it built 20 ok as i tried to rebuild the base project and it gave a lot of errors like above

should i reinstall 2.8.6 and follow the order of build and do them indivdually ?

ie in this order

wxjpeg
wxpng
wxtiff
wxzlib
wxregex
wxexpat
base
net
odbc
xml
core
gl
html
media
qa
adv
dbgrid
xrc
aui
richtext



ok update on this rebuild solved the dde.h errors :D

but my code errors as above still remain :oops: strange thing is i know this code works as it compiled fine in 2.8.4

Maori
Earned some good credits
Earned some good credits
Posts: 112
Joined: Thu Jul 26, 2007 11:15 am
Location: woolwich UK

  [SOLVED]

Postby Maori » Thu Nov 22, 2007 11:19 am

Okidoki found the reason proberbly my mistake but in the vs2003 project i had

Code: Select all

#ifndef WX_PRECOMP
   #include <wx/wx.h>
   #include <wx/bookctrl.h>
   #include <wx/Grid.h>

#endif


but in vs2005 it has to be

Code: Select all

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

#include <wx/bookctrl.h>
#include <wx/Grid.h>


then it compiles fine so far anyway can anyone tell me why that is as i'am n00b and would like to know the diffrence

TIA


Return to “Compiler / Linking / IDE Related”

Who is online

Users browsing this forum: No registered users and 4 guests