nanogui: Thread: Linking with libm crashes my FLTK-program on Cygwin. [OOPS]


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Linking with libm crashes my FLTK-program on Cygwin. [OOPS]
From: "Petri J. Riipinen" ####@####.####
Date: 29 Jun 2001 17:21:41 -0000
Message-Id: <4.2.0.58.20010629201828.00a21c80@gamma.nic.fi>

Oops, sorry, sent to the wrong mailing list...

- Pete
--------------------
Hi folks,

I'm making an application with FLTK, using also some other library (GDAL) 
that requires the linking of libm.a with the final exe. I'm using Cygwin32 
with gcc 2.95.3-5 on Windows NT.

Now, originally my program worked well but when I add libm.a to the final 
linking, my program wont start at all. Well, it starts but doesn't even get 
into main(), e.g. nothing prints out from the first printf in beginning of 
main. It doesn't core dump or anything, just hangs.

I tried the same with the keyboard-test program that comes with FLTK-1.0.11 
and the same happens. Without -lm on the makefile it works but when I add 
it, it hangs on start.

Any ideas why libm crashes FLTK-based programs???

- Petri
<><><><><><><><>
   Petri J. Riipinen
####@####.####
<><><><><><><><>
Subject: Re: [nanogui] Linking with libm crashes my FLTK-program on Cygwin. [OOPS]
From: Jordan Crouse ####@####.####
Date: 29 Jun 2001 18:08:12 -0000
Message-Id: <0106291209190A.25408@cosmic>

Sounds like the -libm on CYGWIN32 isn't all its cracked up to be.    I would 
leave it out unless it is absolutely nessesary.

Jordan


On Friday 29 June 2001 11:18, Petri J. Riipinen mentioned:
> Oops, sorry, sent to the wrong mailing list...
>
> - Pete
> --------------------
> Hi folks,
>
> I'm making an application with FLTK, using also some other library (GDAL)
> that requires the linking of libm.a with the final exe. I'm using Cygwin32
> with gcc 2.95.3-5 on Windows NT.
>
> Now, originally my program worked well but when I add libm.a to the final
> linking, my program wont start at all. Well, it starts but doesn't even get
> into main(), e.g. nothing prints out from the first printf in beginning of
> main. It doesn't core dump or anything, just hangs.
>
> I tried the same with the keyboard-test program that comes with FLTK-1.0.11
> and the same happens. Without -lm on the makefile it works but when I add
> it, it hangs on start.
>
> Any ideas why libm crashes FLTK-based programs???
>
> - Petri
> <><><><><><><><>
>    Petri J. Riipinen
> ####@####.####
> <><><><><><><><>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.