i'm trying to compile a simple c++ program with g++ and codebench.
The program works ok on Windows Code::Blocks/MinGW environment.
As soon as i try to compile on amigaos i get tons of error.
At first the errors was related to certain function written with the 0x11 c++ standard, that Amiga SDK doesn't support yet.
I avoided this problem setting Code::Blocks to work with ox00 standard that is supported by Amiga OS latest SDK, as stated in the sdk documentation.
Tried again to compile but getting 183 error, this time...
Ok, I am pretty sure this is a bug in the dynamic linker, but I'll post here anyway to see, if someone has a straightforward explanation of the phenomenon.
I have a program which reads and modifies data stored in a directory structure. The data itself is in text files. What I would like to do is to pack everything in a single file, i.e. hide the complex directory structure from the users. I was thinking of a zip archive or a disk image.
Can anyone recommend a static ANSI C/C++ library which would allow manipulating the content of an archive or disk image?
I found zlib, but it seems that it can't handle directory structures.
Whenever I try to link some code with my ppc-amigaos-g++ cross compiler (compiled using adtools sources on SourceForge) I get lots of undefined references like these:
$ ppc-amigaos-g++ -use-dynld -O2 -Wall -Werror -o test test.cpp
/usr/local/amiga/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_Unregister'
/usr/local/amiga/lib/gcc/ppc-amigaos/4.2.4/../../../../ppc-amigaos/lib/libstdc++.so: undefined reference to `_Unwind_SjLj_RaiseException'
This is a not an Amiga-specific question, but one aimed at a C program which would compile with GCC equally well on Windows or Amiga or whatever:
If I use main(int argc, char *argv[]) to get the Shell parameters supplied to a program, then they come pre-parsed... WHICH I DO NOT WANT. Is there a portable-C way of getting the original unparsed parameters?
I'm having another weird problem... This time it has to do with type casting and metatypes in Qt. There is this function qobject_cast, which is defined as such:
The code I'm compiling (not written by me) has a macro for checking a version number and then doing something if the version falls within the specified limits: