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

Cannot be compiled using LLVM compiler (Clang) #13

Closed
martin-macak opened this issue May 12, 2014 · 2 comments
Closed

Cannot be compiled using LLVM compiler (Clang) #13

martin-macak opened this issue May 12, 2014 · 2 comments

Comments

@martin-macak
Copy link

When compiling on Mac OS using LLVM Clang compiler, there are C++ issues (still compiling as C++11 with C++11 extensions)

Users/maca/Devel/duel6r/source/World.h:64:74: warning: field 'waveHeight' will be initialized after field 'animationSpeed'
[-Wreorder]
: walls(blockTextures), sprites(blockTextures), water(blockTextures), waveHeight(waveHeight), anim...
^
1 warning generated.
[ 31%] Building CXX object CMakeFiles/duel6r.dir/source/PlayerSkin.cpp.o
/Users/maca/Devel/duel6r/source/PlayerSkin.cpp:53:26: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >'
if (MY_KH3Open(fileName.c_str()) != MY_OK)
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:188:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
/Users/maca/Devel/duel6r/source/PlayerSkin.cpp:54:99: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >'
MY_Err(MY_ErrDump(MY_L("APP00091|Nepodarilo se otevrit soubor %s s texturami postav"), fileName.c_str()));
^
/Users/maca/Devel/duel6r/source/mylib/mylib.h:83:63: note: expanded from macro 'MY_Err'

define MY_Err(x) MY_Error (FILE, LINE, x)

                                                          ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:188:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
/Users/maca/Devel/duel6r/source/PlayerSkin.cpp:58:81: error: implicit instantiation of undefined template
'std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >'
g_app.con->printf(MY_L("APP00050|...Soubor %s obsahuje %d textur\n"), fileName.c_str(), ki.picts);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:188:33: note:
template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;

@odanek
Copy link
Owner

odanek commented May 13, 2014

Seems like a missing include of string. I have found two of them and a problem in Math.h. Try the latest CL d3ef379.

@odanek
Copy link
Owner

odanek commented May 21, 2014

Fixed in latest revision.

@odanek odanek closed this as completed May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants