[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segmentation fault whew cross-compiling with included dll-s

From: Mojca Miklavec
Subject: Segmentation fault whew cross-compiling with included dll-s
Date: Fri, 21 Jan 2011 17:56:09 +0100

Dear list,

I'm experiencing a nasty problem with cross-compiler. I'm using 64-bit
Mac OS X 10.6.6 with macports and

> i386-mingw32-g++ --version
i386-mingw32-g++ (GCC) 3.4.5 (mingw-vista special r2)
> i386-mingw32-ld --version
GNU ld (GNU Binutils) 2.19.1

(but I'm experiencing similar problems on another linux machine that I
have tried).

When I try to run
    i386-mingw32-g++ picoscope.cpp main.cpp -o main.exe -lps4000 -L.
it crashes with
    collect2: ld terminated with signal 11 [Segmentation fault]

However it works with MiwGW
    g++ picoscope.cpp main.cpp -o main -lps4000 -L.
under Windows (7).

I have put the files and make-osx.sh/make-win.bat to a temporary location
(The file is 374K and I wasn't sure if it was OK to put attach it.)

I know that the version of linker on my computer might be old, but:
- I don't know how to compile & install the latest one
- I am curious to know whether the same problem happens on your
machines when you run the latest versions of linkers.

Thank you very much for your help,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]