expected class-name error in Ubuntu

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.
Post Reply
spflanze
Earned some good credits
Earned some good credits
Posts: 118
Joined: Tue Feb 15, 2011 10:02 pm

expected class-name error in Ubuntu

Post by spflanze » Wed Jun 27, 2018 4:49 pm

I transferred a wxWidgets project from Windows 7 to Ubuntu 16.04. To do this I created a new project file in Code::Blocks and added the transferred files to it. When I compile in Ubuntu I get this error I did not get in Windows 7:
/usr/include/wx-3.0-unofficial/wx/dlimpexp.h:20:22: error: expected class-name before ‘__attribute__’
# define WXIMPORT __attribute__ ((visibility("default")))
And several others errors also. The one above is the first. What has gone wrong here? I do not intend to create a dll.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3446
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: expected class-name error in Ubuntu

Post by ONEEYEMAN » Wed Jun 27, 2018 9:35 pm

Hi,
Did you build wx yourself or get it from the repository?

Thank you.

spflanze
Earned some good credits
Earned some good credits
Posts: 118
Joined: Tue Feb 15, 2011 10:02 pm

Re: expected class-name error in Ubuntu

Post by spflanze » Thu Jun 28, 2018 2:24 pm

I got it from the repository 'deb http://repos.codelite.org/wx3.0.3/ubuntu/ xenial universe'

spflanze
Earned some good credits
Earned some good credits
Posts: 118
Joined: Tue Feb 15, 2011 10:02 pm

Re: expected class-name error in Ubuntu

Post by spflanze » Mon Feb 18, 2019 10:07 pm

This problem is solved. That answer is in this thread:
http://forums.codeblocks.org/index.php/ ... 3.new.html

Post Reply