See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: Undeclared identifiers in VesselAPI.h  (Read 2227 times)

0 Members and 1 Guest are viewing this topic.

Offline alni

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
18 April 2008, 16:44:38
Hi,

I got a problem when trying to comply the DialogTemplate sample from the Orbiter SDK.

I'm using Dev-C++ to comply it.

The errors are:
Quote
../../include/VesselAPI.h:437: error: `max' undeclared (first use this function)
../../include/VesselAPI.h:437: error: (Each undeclared identifier is reported only once for each function it appears in.)
../../include/VesselAPI.h:439: error: `min' undeclared (first use this function)
Can I replace these identifiers with identifiers that Dev-C++ recognizes? Or is it a way to make these identifiers work
with Dev-C++ ?



Offline Urwumpe

  • Sr. Member
  • ****
  • Posts: 427
  • Karma: 0
Reply #1 - 18 April 2008, 18:32:00
I would say, Dev-C++ lacks the correct runtime library

min and max are defined in <algorithm> and "stdlib.h", which should be included in "windows.h"


Offline computerex

  • Full Member
  • ***
  • Posts: 104
  • Karma: 0
Reply #2 - 19 April 2008, 02:44:22
Dev C++ won't work in compiling orbiter modules, the orbiter libraries are compiled with the vc++ compiler series I think.

« Last Edit: 19 April 2008, 02:44:22 by computerex »