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.
spflanze
Experienced Solver
Experienced Solver
Posts: 86
Joined: Tue Feb 15, 2011 10:02 pm

expected class-name error in Ubuntu

Postby 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: 2835
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: expected class-name error in Ubuntu

Postby ONEEYEMAN » Wed Jun 27, 2018 9:35 pm

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

Thank you.

spflanze
Experienced Solver
Experienced Solver
Posts: 86
Joined: Tue Feb 15, 2011 10:02 pm

Re: expected class-name error in Ubuntu

Postby 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'


Return to “Compiler / Linking / IDE Related”

Who is online

Users browsing this forum: No registered users and 6 guests