Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help me!!

1 view
Skip to first unread message

CDTamhankar

unread,
Jul 14, 2005, 12:40:16 AM7/14/05
to
HELLO

I was compiling fltk widgets (fltk.org) &
I came accross error while using C++BuilderX
[personal edition]
Borland compiler / windows environment [ c32]

I reported this error to to fltk developers.
-------------------------------------
File fl_get_system_colors.cxx

45 #if defined(__APPLE__) && defined(__MWERKS__)
46 extern "C" int putenv(const char*);
47 #endif


"Fl_get_system_colors.cxx": E2322 Incorrect number format at line 45
"Fl_get_system_colors.cxx": E2188 Expression syntax at line 45

----------------

This sorted out by midifying source code as follows

#if defined(__APPLE__)
#if defined(__MWERKS__)
extern "C" int putenv(const char*);
#endif // __MWERKS__
#endif // __APPLE__

This makes fltk compatible with C++BuilderX compilers
--------------------------------------------

Reply from fltk developers [ Michael Sweet <mi...@easysw.com>] .......

We WILL NOT make changes like this to support a buggy compiler.
Report this as a serious bug to the Borland folks since the preprocessor
syntax is required by the C and C++ standards!
====================
Can someone help me?

C D Tamhankar


0 new messages