C & C++

Can't compile a simple c++ program

Hello everyone,

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...

Forums: 

Recommendations for archive or disk image libraries?

Hello,

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.

Forums: 

Problems linking with g++ cross compiler created from adtools

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'

Forums: 

Anyway to get *un*parsed shell arguments for a portable C program?

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?

Forums: 

Pages

Subscribe to RSS - C & C++