I am using VS2008 on Vista SP1 with FLTK 1.1.9.
I extract the tar in a folder in My Documents. Then I open the fltk solution
from vc2005 directory. Next I do click on "Build Solution". I wait a few
minutes and get only a few warnings about the debug log not being accessible
or something, anyway. I built both debug and release versions of FLTK.
Next, I try some applications from the test folder - most of them start
okay. Editor does not start because of missing fltkdll.dll.
Then I start a new project in VS2008 - console one, paste the hello world
source code. Then under C/C++ General I add additional include dir - the one
where FLTK resides. Then I try compile - it works!
Then I add the lib dir in the Linker General properties. I also add these
dependancies under Linker Input: fltkd.lib wsock32.lib
This is what the documentation says to do! I use the *d version, because I
use debug mode right now in VS.
I got this:

1>------ Build started: Project: fltk_test, Configuration: Debug Win32
------
1>Linking...
1>fltkd.lib(Fl.obj) : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "long __stdcall
WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@
@YGJPAUHWND__@@[EMAIL PROTECTED])
1>C:\Users\Zdravko\Documents\Visual Studio
2008\Projects\fltk_test\Debug\fltk_test.exe : fatal error LNK1120: 1
unresolved externals

Strangely enough, I don't get the conflict with msvcrt.lib right now. I
might have done something in a different way...
Anyway, you tell me what is wrong here. I followed the docs precisely!


2008/11/15 <[EMAIL PROTECTED]>

> Send fltk mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.easysw.com/mailman/listinfo/fltk
> or, via email, send a message with subject or body 'help' to
>        [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>        [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fltk digest..."
>
> Today's Topics:
>
>   1. Detect mouse click / double click through overrided       event
>      handler (Marc R.J. Brevoort)
>   2. Re: Detect mouse click / double click through     overrided event
>      handler (imacarthur)
>   3. Re: Detect mouse click / double click through overrided event
>      handler (Marc R.J. Brevoort)
>   4. Re: fltk Digest, Vol 58, Issue 17 (Zdravko Monov)
>   5. Re: Detect mouse click / double click through     overrided event
>      handler (matthiasm)
>   6. Re: - compile problems 1.1.9/w VS2008 (was: fltk  Digest, Vol
>      58, Issue 17) (imacarthur)
>   7. fluid: reset-colors? (Jane)
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: "Marc R.J. Brevoort" <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Fri, 14 Nov 2008 23:25:17 +0100 (CET)
> Subject: [fltk.general] Detect mouse click / double click through overrided
> event handler
> Hi all,
>
> I'm busy porting a piece of code over to FLTK. One of the things that
> the original code does is respond to mouse events: mouse down, up,
> move, enter, leave, drag, click and doubleclick.
>
> So far so good; many of these are available as regular FLTK events.
> The problem is in detecting clicks vs. double-clicks from their
> partial events (mouse down+up and yet again with a given timeout,
> without having moved too much, ...).
>
> Has anyone written an event handler that already does
> proper click/doubleclick detection?
>
> Thanks in advance,
> Marc
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: imacarthur <[EMAIL PROTECTED]>
> To: "Mirror of fltk.general Newsgroup" <[email protected]>
> Date: Fri, 14 Nov 2008 22:38:43 +0000
> Subject: Re: [fltk.general] Detect mouse click / double click through
> overrided event handler
>
> On 14 Nov 2008, at 22:25, Marc R.J. Brevoort wrote:
>
>>
>> Has anyone written an event handler that already does
>> proper click/doubleclick detection?
>>
>
> Is this Fl::event_clicks() method any good for your purposes?
>
>
> -------
>
> int event_clicks();
> void event_clicks(int i);
>
> The first form returns non-zero if the most recent FL_PUSH or FL_KEYBOARD
> was a "double click". Returns N-1 for N clicks. A double click is counted if
> the same button is pressed again while event_is_click() is true.
>
> The second form directly sets the number returned by Fl::event_clicks().
> This can be used to set it to zero so that later code does not think an item
> was double-clicked.
>
>
>
>
>
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: "Marc R.J. Brevoort" <[EMAIL PROTECTED]>
> To: "Mirror of fltk.general Newsgroup" <[email protected]>
> Date: Sat, 15 Nov 2008 00:03:48 +0100 (CET)
> Subject: Re: [fltk.general] Detect mouse click / double click through
> overrided event handler
> On Fri, 14 Nov 2008, imacarthur wrote:
>
>  On 14 Nov 2008, at 22:25, Marc R.J. Brevoort wrote:
>>
>>>
>>> Has anyone written an event handler that already does
>>> proper click/doubleclick detection?
>>>
>>
>> Is this Fl::event_clicks() method any good for your purposes?
>>
>
> Yes, it looks like it mostly is.
>
> Thanks!
> Marc
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: "Zdravko Monov" <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Sat, 15 Nov 2008 08:35:50 +0200
> Subject: Re: [fltk.general] fltk Digest, Vol 58, Issue 17
> I am using VS2008 and downloaded fltk 1.1.9. I managed to compile the
> Hello
> world (the include headers were ok to setup). But then I got error with
> this
> msvcrt.lib. What type of application should FLTK use - console or
> windows-one? Any ideas?
>
> 2008/11/14 <[EMAIL PROTECTED]>
>
> > Send fltk mailing list submissions to
> >        [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://lists.easysw.com/mailman/listinfo/fltk
> > or, via email, send a message with subject or body 'help' to
> >        [EMAIL PROTECTED]
> >
> > You can reach the person managing the list at
> >        [EMAIL PROTECTED]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of fltk digest..."
> >
> > Today's Topics:
> >
> >   1. Re: fltk.lib conflicts with msvcrt.lib? (Zdravko)
> >   2. Re: fltk.lib conflicts with msvcrt.lib? (Greg Ercolano)
> >   3. Re: fltk.lib conflicts with msvcrt.lib?
> >      (MacArthur, Ian (SELEX GALILEO, UK))
> >
> >
> > ---------- Weitergeleitete Nachricht ----------
> > From: Zdravko <[EMAIL PROTECTED]>
> > To: [email protected]
> > Date: Fri, 14 Nov 2008 00:00:17 -0800
> > Subject: Re: [fltk.general] fltk.lib conflicts with msvcrt.lib?
> > I have the very same issue. Anyone?
> >
> > > This is a weird issue:  my FLTK appliation builds without error in both
> > debug and release modes (VC++.NET 2003)  However, in release mode, the
> .exe
> > will run only from inside .NET!  The app won't run if you just
> double-click
> > on the icon.  After some experimentation, if I build in release mode but
> > link to fltkd.lib and msvcrtd.lib it works. (not changing any other
> relase
> > mode settings)
> > >
> > > Anyone else had this kind of problem or know what's causing this?
> > >
> > > Thanks!
> > >
> >
> >
> >
> >
> > ---------- Weitergeleitete Nachricht ----------
> > From: Greg Ercolano <[EMAIL PROTECTED]>
> > To: [email protected]
> > Date: Fri, 14 Nov 2008 01:25:05 -0800
> > Subject: Re: [fltk.general] fltk.lib conflicts with msvcrt.lib?
> > Zdravko wrote:
> > > I have the very same issue. Anyone?
> >
> >        Compare your link line to the link line of one of the FLTK apps
> >        to see what's different.
> >
> >        If you're not sure, paste both here.
> >
> >        Also: which compiler?
> >
> >
> >
> > ---------- Weitergeleitete Nachricht ----------
> > From: "MacArthur, Ian (SELEX GALILEO, UK)" <
> [EMAIL PROTECTED]
> > >
> > To: "Mirror of fltk.general Newsgroup" <[email protected]>
> > Date: Fri, 14 Nov 2008 10:16:08 -0000
> > Subject: Re: [fltk.general] fltk.lib conflicts with msvcrt.lib?
> >
> > > > I have the very same issue. Anyone?
> > >
> > >       Compare your link line to the link line of one of the FLTK apps
> > >       to see what's different.
> > >
> > >       If you're not sure, paste both here.
> > >
> > >       Also: which compiler?
> >
> > And which version of fltk?
> >
> >
> >
> > SELEX Sensors and Airborne Systems Limited
> > 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.
> > ********************************************************************
> >
> >
> >
> > _______________________________________________
> > fltk mailing list
> > [email protected]
> > http://lists.easysw.com/mailman/listinfo/fltk
> >
> >
>
>
> --
> Zdravko Monov
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: matthiasm <[EMAIL PROTECTED]>
> To: "Mirror of fltk.general Newsgroup" <[email protected]>
> Date: Sat, 15 Nov 2008 11:04:20 +0100
> Subject: Re: [fltk.general] Detect mouse click / double click through
> overrided event handler
>
> On 15.11.2008, at 00:03, Marc R.J. Brevoort wrote:
>
>  On Fri, 14 Nov 2008, imacarthur wrote:
>>
>>  On 14 Nov 2008, at 22:25, Marc R.J. Brevoort wrote:
>>>
>>>>
>>>> Has anyone written an event handler that already does
>>>> proper click/doubleclick detection?
>>>>
>>>
>>> Is this Fl::event_clicks() method any good for your purposes?
>>>
>>
>> Yes, it looks like it mostly is.
>>
>
>
> Mostly? ;-) What else is missing? (Curious...)
>
> Matthias
>
> ----
> http://robowerk.com/
>
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: imacarthur <[EMAIL PROTECTED]>
> To: "Mirror of fltk.general Newsgroup" <[email protected]>
> Date: Sat, 15 Nov 2008 11:02:15 +0000
> Subject: Re: [fltk.general] - compile problems 1.1.9/w VS2008 (was: fltk
> Digest, Vol 58, Issue 17)
>
> On 15 Nov 2008, at 6:35, Zdravko Monov wrote:
>
>  I am using VS2008 and downloaded fltk 1.1.9. I managed to compile the
>> Hello
>> world (the include headers were ok to setup). But then I got error with
>> this
>> msvcrt.lib.
>>
>
> It would help if you could post more details of your system, your
> toolchain, an example of what link invocation was run and some details of
> the error you are seeing.
> Many people are successfully using fltk with the VS compilers, so it can be
> made to work - so we just need to figure out why it does not work for you.
>
> I assume all the examples in the /test/ folder work OK? And you can build
> other things with your compiler setup?
>
>
>  What type of application should FLTK use - console or
>> windows-one? Any ideas?
>>
>
> It does not matter:
> If you build a "console" project, then a windows console will appear when
> your application starts, and it will then show its first window as normal.
> A "windows" project simply does not show the console window but is
> otherwise much the same.
>
> Either is fine for fltk. That is not likely to be the cause of your
> problem.
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: Jane <[EMAIL PROTECTED]>
> To: [email protected]
> Date: Sat, 15 Nov 2008 04:04:54 -0800
> Subject: [fltk.general] fluid: reset-colors?
> hello, is it possible to tell fluid to unset any previously
> set colors so that the defaults are used again?
>
> ty, jan
>
>
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>
>


-- 
Zdravko Monov
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to