www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/17/09:10:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: fltk compilation error
Date: Tue, 17 Aug 2004 09:10:29 -0400
Message-ID: <64AE3D5B518E3648ACC823FBCB0B737502A6B3C6@sr002-2kexc.ateb.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Reid Thompson" <Reid DOT Thompson AT ateb DOT com>
To: "Ken Dibble" <kdibbleNOSPAM AT alltel DOT net>, "cygwin" <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i7HDAeHh027548

Ken Dibble wrote:
> I am unable to determince what the error is, not knowing
> anything about
> gcc, fltk or fltk-config
> 
> the following command produces a gui executable (at least for this
> trivial example) which prints "Hello World" to the console when Open
> is 
> selected from the
> File menu.
> 
> gcc test.cxx -lfltk -lstdc++
> 

http://ccrma.stanford.edu/planetccrma/man/man1/fltk-config.1.html
 fltk-config  is  a  utility  script that can  be  used  to
get information about the current version of FLTK that is installed on
the
system, what compiler  and  linker  options to use when building  FLTK-
based applications, and to build simple FLTK applications.

So, fltk-config --compile test.cxx 'should' compile test.cxx and the
other associated fluid generated files into test.exe.
It attempts to do this ala:
$ fltk-config --compile test.cxx <- this command call results in the
compilation call listed on the next line.
gcc -mwindows -DWIN32 -o test test.cxx -mwindows /usr/lib/libfltk.a
-lole32 -luuid -lcomctl32 -lwsock32 -lsupc++

Which fails with the following error:

In file included from /usr/include/w32api/windef.h:246,
                 from /usr/include/w32api/windows.h:48,
                 from /usr/include/FL/Fl_Preferences.H:30,
                 from /usr/include/FL/Fl_File_Chooser.h:14,
                 from test.cxx:5:
/usr/include/w32api/winnt.h:2557: error: parse error before `+' token
In file included from /usr/include/w32api/objbase.h:60,
                 from /usr/include/w32api/ole2.h:9,
                 from /usr/include/w32api/windows.h:111,
                 from /usr/include/FL/Fl_Preferences.H:30,
                 from /usr/include/FL/Fl_File_Chooser.h:14,
                 from test.cxx:5:
/usr/include/w32api/objidl.h:924: error: parse error before `+' token

I was trying to determine what would be required to fix the errors in
the listed headers.

reid

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019