Libraries

Question about struct DiskObject (solved)

Hi,

When I apply IIcon->GetDiskObject() or IIcon->GetDiskObjectNew(), I *MAY* get a valid pointer to a struct DiskObject (or not in case of a failure).
How can I figure out from that struct DiskObject whether there was indeed a valid '.info'-file present (GetDiskObject() was successfull), or there was no '.info'-file present (GetDiskObject() failed, but GetDiskObjectNew() was succesfull)?

OldFart

Forums: 

Saving icon with PutIconTags

Hello,

I'm having trouble with writing an icon with PutIconTags(). What I'm trying to do is to read the properties of two icon files (image, icon type, default tool, etc.) and save an icon that is a combination of the two icons.

My program reads the two icon files first with GetDiskObject(). Then it creates a blank icon with NewDiskObject() and sets the blank icon's struct DiskObject data members.

Forums: 

GCC 13.2 as shared library?

As maintainer of EEC (a fork of ECX, the E compiler for next-gen Amiga systems) I thought it might be handy for compiler developers to be able to use a GCC 13.2 shared library based on the LibGCCJIT frontend stub. My intention would be maintaining the library independently of the parser of EEC so that cross compilation would be modular. Present backends for EEC are all intertwined in a big mess of interdependent code that generates substandard quality.

Forums: 

libstdc++.so undefined reference to gthread_cond_blaa

How do I get rid of this error ?

"/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_broadcast'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_destroy'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_init'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_wait'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_signal'"

Forums: 

ELF and shared objects headache

I'm getting crazy about my clib2 version and shared objects. and i don't know where to check. Basically i have this problem:

If i compile a program without shared objects everything works correctly.

If i compile with my patched GCC 10 that supports shared objects also for clib2 i have an undefined symbol when the elf.library try to call InitSHLibs.

I get 0x00000000 symbol not available.

The problem however is not in the shared object but in the crtbegin file that is the same with both shared and not shared objects.

Forums: 

Pages

Subscribe to RSS - Libraries