FLTK logo

Re: VS2008 Compile Error with fltkd.lib

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: VS2008 Compile Error with fltkd.lib "MacArthur, Ian (SELEX GALILEO, UK)" Jan 06, 2010  
 
> 	Yes, I can replicate that here too.. it's a mess alright.
> 
> 	Much of this seems related to recent mods to Fl_Preferences
> 	which need to be rectified, if not already in SVN current.

There are fixes in svn for this already, but that tarball seems to have
escaped with the badness in it...

> 	(On windows I can only pull tar files, I don't know of an
> 	SVN client for windows.)

The favoured gui version is TortoiseSVN from

http://tortoisesvn.net/downloads

But I actually prefer the free command line client from

http://www.sliksvn.com/en/download 

Bothe are "annointed" in that they are linked to from tigris's svn
downloads page.


> 	My recommended inclusion of Winsock2.h might be wrong here..
> 	I thought we were using wsock2 now, so either my 
> #include is wrong,
> 	or the linker options for many of the demos now need to link in
> 	wsock2 libs that weren't doing that before.

No, you were right - the problem arises because fltk-1.3 no longer links
against the winsock DLL's by default... So we are correctly getting the
gethostname prototype but not linking it in at link time...

We don't need it anyway, so the easy thing is just to comment out all
refs to gethostname and carry on.


> 	The fact that fluid doesn't build due to that 
> gethostname link error
> 	means all apps dependent on fluid will fail as well 
> (keyboard demo, etc)
> 
> 	There is probably a win32 call to get the local 
> hostname without having
> 	to include the entire wsock2 lib.
> 
> 	Let's see what the guys currently doing dev on Fl_Preferences
> 	will reply. They'll really have to test with VS2008 to make
> 	sure checkins work, as many people are using VS2008 now.

It's not a VS issue - it breaks on *all* win32 builds... Broke for my
mingw builds too, and Albrecht's cygwin build... You'll find that
Albrecht has already checked in workarounds, and Matthias' is working on
a more correct solution for the longer term.



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.