gm2
[Top][All Lists]
Advanced

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

[Gm2] Re: About libraries and directories


From: john o goyo
Subject: [Gm2] Re: About libraries and directories
Date: Tue, 30 Nov 2010 07:44:09 -0500

On 29-Nov-10, at 2:56 AM, Gaius Mulley wrote:
Christoph Schlegel <address@hidden> writes:
Hello Gaius,

I just built gm2 from the cvs-latest tarball - now I have a question. I built the iso/socket example and it compiled fine. Executing the resulting program I get:

address@hidden:~/Sources/gm2examples/iso/socket$ ./a.out
../../gcc-4.1.2+gm2-cvs-latest/gcc/gm2/gm2-libs-iso/EXCEPTIONS.mod: 57:3:IOLink.RAISEdevException: channel does not belong to device in RAISE

Now it is not the raised exception which makes me wonder but the location of the file EXCEPTIONS.mod which is used: I installed gm2 to $HOME/gm2 as usual but the compiler still uses the files from the downloaded and unpacked tarball. Shouldn't it use the files from the make-installed compiler - in my case under $HOME/gm2?

Just wondering...

Christoph

Hi Christoph,

the location is derived from the symbol __FILE__ which is expanded when compiled. Maybe it would be helpful if the exception print should strip
the path from the filename given the mismatch between source file and
installed library?

That would be much cleaner, Gaius, thank you.

john



reply via email to

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