my program compiled error on wx/buffer.h Topic is solved
my program compiled error on wx/buffer.h
Hi,
My wx program runs well under Windows and is currently being ported to MacOs, and the MacOs version is 10.12, IDE: XCode, but when compiled under the Mac, it is incorrectly reported in wx/buffer
My wx program runs well under Windows and is currently being ported to MacOs, and the MacOs version is 10.12, IDE: XCode, but when compiled under the Mac, it is incorrectly reported in wx/buffer
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
Doesn't anyone use wx on MacOs?
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
Very few people in this forum work under OS X. I can only think of 2 or 3. I'm not one of them.Doesn't anyone use wx on MacOs?
Building the wx libraries worked ok?
Which command line did you use?
Can you build the "minimal" sample that comes with wxWidgets?
My best guess is that the include directories are wrong and you're including the wrong version of setup.h
Or some preprocessor symbols are wrong/missing.
Unfortunately i can't be more specific.
Use the source, Luke!
Re: my program compiled error on wx/buffer.h
Hi,
Did you follow instructions in the wxWiki on setting up the Xcode for wxWidgets project?
What are the output of "wx-config --include" and "wx-config --libs"?
Did you correctly transferred those options inside the Xcode?
Thank you.
Did you follow instructions in the wxWiki on setting up the Xcode for wxWidgets project?
What are the output of "wx-config --include" and "wx-config --libs"?
Did you correctly transferred those options inside the Xcode?
Thank you.
Re: my program compiled error on wx/buffer.h
Thank you for reminding me that I followed the configuration on the wiki and configured the 'minimal' sample before I started porting my own program.ONEEYEMAN wrote:Hi,
Did you follow instructions in the wxWiki on setting up the Xcode for wxWidgets project?
What are the output of "wx-config --include" and "wx-config --libs"?
Did you correctly transferred those options inside the Xcode?
Thank you.
First,the "minimal" sample run ok,and the other xcode project I created using the source code of 'minimal' is working properly.
The following is the output of wx-config:
$ wx-config --libs
-L/usr/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_xrc-3.1 -lwx_osx_cocoau_html-3.1 -lwx_osx_cocoau_qa-3.1 -lwx_osx_cocoau_adv-3.1 -lwx_osx_cocoau_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1
wx-config --cxxflags
-I/usr/local/lib/wx/include/osx_cocoa-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__
These drawings are a screenshot of my xcode project c++flags and header files. I really don't know what the problem is?
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
the anther screenshotONEEYEMAN wrote:Hi,
Did you follow instructions in the wxWiki on setting up the Xcode for wxWidgets project?
What are the output of "wx-config --include" and "wx-config --libs"?
Did you correctly transferred those options inside the Xcode?
Thank you.
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
thank you very much doublemax!doublemax wrote:Very few people in this forum work under OS X. I can only think of 2 or 3. I'm not one of them.Doesn't anyone use wx on MacOs?
Building the wx libraries worked ok?
Which command line did you use?
Can you build the "minimal" sample that comes with wxWidgets?
My best guess is that the include directories are wrong and you're including the wrong version of setup.h
Or some preprocessor symbols are wrong/missing.
Unfortunately i can't be more specific.
I used a wrong setup.h
and thanks ONEEYEMAN!
I was so careless.
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
Proved my setup. H into wxWiKi in $(WXROOT)/build/osx/setup/cocoa/include Settings before there are still those errorsEllan wrote:thank you very much doublemax!doublemax wrote:Very few people in this forum work under OS X. I can only think of 2 or 3. I'm not one of them.Doesn't anyone use wx on MacOs?
Building the wx libraries worked ok?
Which command line did you use?
Can you build the "minimal" sample that comes with wxWidgets?
My best guess is that the include directories are wrong and you're including the wrong version of setup.h
Or some preprocessor symbols are wrong/missing.
Unfortunately i can't be more specific.
I used a wrong setup.h
and thanks ONEEYEMAN!
I was so careless.
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
Hi,
So they are gone now?
Thank you.
So they are gone now?
Thank you.
Re: my program compiled error on wx/buffer.h
No!ONEEYEMAN wrote:Hi,
So they are gone now?
Thank you.
Perhaps the definition and the declaration of the template class are not in the same file, but the namespace error is not understood.
I've set it up again on wxWiki, but again, the errors are in the wx/buffer.h file!
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
In the preprocessor definitions i see something that begins with "WXBUILDING...". That looks wrong. What's the complete entry?Building the wx libraries worked ok?
Which command line did you use?
Can you build the "minimal" sample that comes with wxWidgets?
Use the source, Luke!
Re: my program compiled error on wx/buffer.h
doublemax wrote:In the preprocessor definitions i see something that begins with "WXBUILDING...". That looks wrong. What's the complete entry?Building the wx libraries worked ok?
Which command line did you use?
Can you build the "minimal" sample that comes with wxWidgets?
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
WXBUILDING should only be defined if you're compiling the wx libraries themselves. Not when you're building an application that uses wxWidgets.
Use the source, Luke!
Re: my program compiled error on wx/buffer.h
Thank you !doublemax wrote:WXBUILDING should only be defined if you're compiling the wx libraries themselves. Not when you're building an application that uses wxWidgets.
Now I don't have that error. I haven't changed anything. It's amazing.
Thanks
Best Regards
Ellan
Best Regards
Ellan
Re: my program compiled error on wx/buffer.h
Hi,
Just verify that application can be started and closed successfully.
Thank you.
Just verify that application can be started and closed successfully.
Thank you.