Greetings
(I posted this in cygwin.talk, but then I realized that this was a much
more suited place)
I'm trying to get a fairly large C++ project to compile using the mingw
tools in cygwin. I've sorted out most of the errors so far, but now I'm
stuck on the executable linking .
Compilation flag
I might have solved this by adding -mno-cygwin, -mwin32 and -mwindows to
the linker flags too. It doesn't run (eats up all CPU power instead),
but at least it compiles.
/Marco
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.ht
After successfully porting our application from Linux to cygwin, most of
the functions work, except for one thing - png images. As soon as I call
png_create_read_struct, the application will imediately hang and start
using up all available CPU power. This happens with both libpng10 and
libpng1
Gerrit P. Haase wrote:
Marco Alanen wrote:
After successfully porting our application from Linux to cygwin, most
of the functions work, except for one thing - png images. As soon as I
call png_create_read_struct, the application will imediately hang and
start using up all available CPU power
Some simple code:
#include
#include
int main(int argc, char **argv)
{
png_structp png_ptr = png_create_read_struct
(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
return 0;
}
Compiled with:
gcc -o pngtest pngtest.c -mno-cygwin -mwin32 -mwindows -lpng
Additional info:
Dave Korn wrote:
-Original Message-
From: cygwin-owner On Behalf Of Marco Alanen
Sent: 12 November 2004 13:56
Compiled with:
gcc -o pngtest pngtest.c -mno-cygwin -mwin32 -mwindows -lpng
^^^
Not a cygwin problem then.
cheers,
DaveK
So where
Gerrit P. Haase wrote:
> Marco Alanen wrote:
>
>> Gerrit P. Haase wrote:
>>
>>> Marco Alanen wrote:
>>>
>>>> After successfully porting our application from Linux to cygwin,
>>>> most of the functions work, except for one thing - png
7 matches
Mail list logo