Closed khiav223577 closed 5 years ago
And the engine runs without graphical problems?
Edit: Also, what compiler is this?
I hasn't encountered any problem yet. It can display the title scene, maps, characters, and pictures.
My compiler is:
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Can't compile this with g++ 8.3.1, unsure what the issue with clang is:
vertex.o:(.data.rel.local+0x0): multiple definition of `VertexTraits<Vertex>::attr'
bitmap.o:(.bss._ZN12VertexTraitsI6VertexE4attrE[_ZN12VertexTraitsI6VertexE4attrE]+0x0): first defined here
vertex.o:(.data.rel.local+0x8): multiple definition of `VertexTraits<CVertex>::attr'
tilemap.o:(.bss._ZN12VertexTraitsI7CVertexE4attrE[_ZN12VertexTraitsI7CVertexE4attrE]+0x0): first defined here
vertex.o:(.data.rel.local+0x10): multiple definition of `VertexTraits<SVertex>::attr'
plane.o:(.bss._ZN12VertexTraitsI7SVertexE4attrE[_ZN12VertexTraitsI7SVertexE4attrE]+0x0): first defined here
collect2: error: ld returned 1 exit status
Will reopen this if more people report issues.
I encountered this problem when I tried to build mkxp.
Not sure why, but I managed to fix it by adding a line to define
VertexTraits<Vertex>::attr
, and it worked for me.Environment