|
"Two or more data types in declaration" error |
madpenguin
Member #2,201
April 2002
|
Hi all, I am trying to include a C header into a C++ program. In this header, I have the following:
When I compile, I get: Quote: md2_model.h:31: error: two or more data types in declaration of 'MD2_HEADER_STRUCT' ...and wrapping the include up in extern "C" { didn't fix it. Has anyone seen this before and knows what it might be? Posted here because it's not really allegro-related. --------------------------------------------- |
le_y_mistar
Member #8,251
January 2007
|
it's programming related, isnt there a programming sub forum? ----------------- |
bamccaig
Member #7,536
July 2006
|
There appears to be nothing wrong with the code you posted. I compiled it fine as C code. Google searches suggest that a function (or something) is declared with 2 data types... For example... -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Thomas Fjellstrom
Member #476
June 2000
|
Which line is line 31? -- |
Kibiz0r
Member #6,203
September 2005
|
My guess is a missing ; or } above it. --- |
|