Page 1 of 1

expected class-name error in Ubuntu

Posted: Wed Jun 27, 2018 4:49 pm
by spflanze
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.

Re: expected class-name error in Ubuntu

Posted: Wed Jun 27, 2018 9:35 pm
by ONEEYEMAN
Hi,
Did you build wx yourself or get it from the repository?

Thank you.

Re: expected class-name error in Ubuntu

Posted: Thu Jun 28, 2018 2:24 pm
by spflanze
I got it from the repository 'deb http://repos.codelite.org/wx3.0.3/ubuntu/ xenial universe'

Re: expected class-name error in Ubuntu

Posted: Mon Feb 18, 2019 10:07 pm
by spflanze
This problem is solved. That answer is in this thread:
http://forums.codeblocks.org/index.php/ ... 3.new.html