Menu

#1 Weird compilation error

open
nobody
None
5
2004-03-25
2004-03-25
No

When I try to compile the Solid library in Windows I get
the following error when compiling the "C-api.cpp" file:

g++.exe -c C-api.cpp -o C-api.o -I"C:/Dev-
Cpp/include/c++" -I"C:/Dev-
Cpp/include/c++/mingw32" -I"C:/Dev-
Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -
I"C:/Nelson_Goncalves/IdeiaGenial/Software/Colisao/solid
-2.0.2/include" -DNDEBUG -O3 -mwindows -ffast-math -
Wno-deprecated -static

C-api.cpp: In function `void dtVertexIndices
(DtPolyType, unsigned int, const
DtIndex*)':
C-api.cpp:152: parse error before `(' token

And the infamous line reads the following:

poly = new Polygon(currentComplex->getBase(),
count, indices);

Wich, for all I can tell is perfectly ok. When coment this
line everything compiles perfectly. Should it be like this ?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.