Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTTD doesn't compile on mingw with gcc 4.3.0 #2531

Closed
DorpsGek opened this issue Jan 12, 2009 · 3 comments
Closed

OpenTTD doesn't compile on mingw with gcc 4.3.0 #2531

DorpsGek opened this issue Jan 12, 2009 · 3 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

yorick opened the ticket and wrote:

Compiling openttd fails on mingw with gcc 4.3.0, with the following error:

[SRC] Compiling ai/api/ai_industry.cpp
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/../../oldpool.h: In member function â?~bool PoolItemIndexLess::operator()(const T*, const T*) const [with T = Station]â?T:
d:\mingw\bin../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:358: instantiated from â?~void __gnu_cxx::_BinaryFunctionConcept<_Func, _Return,
_First, _Second>::__constraints() [with _Func = PoolItemIndexLess, _Return = bool, _First = Station*, _Second = Station*]â?T
d:\mingw\bin../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_set.h:98: instantiated from â?~std::set<Station*, PoolItemIndexLess, std::allocator<Station*> >â?T
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/ai_industry.cpp:126: instantiated from here
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/../../oldpool.h:172: fout: invalid use of incomplete type â?~const struct Stationâ?T
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/../../station_type.h:11: fout: forward declaration of â?~const struct Stationâ?T
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/../../oldpool.h:172: fout: invalid use of incomplete type â?~const struct Stationâ?T
D:/msys/home/Yorick/ottd/hg_test_trunk/src/ai/api/../../station_type.h:11: fout: forward declaration of â?~const struct Stationâ?T
make[1]: *** [ai/api/ai_industry.o] Error 1
make[1]: Leaving directory `/home/Yorick/ottd/hg_test_trunk/objs/release'
make: *** [all] Error 2

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/2531
@DorpsGek
Copy link
Member Author

yorick wrote:

It turned out to be easy to fix :p

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2531#comment5314

@DorpsGek
Copy link
Member Author

glx wrote:

Happens with gcc-4.3.0-mingw32 only it seems. And this version is for testing not for actual development (it's not the stable one) so it may have bugs.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2531#comment5316

@DorpsGek
Copy link
Member Author

peter1138 closed the ticket.

Reason for closing: Fixed

In r15067


This comment was imported from FlySpray: https://bugs.openttd.org/task/2531

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant