Amidevcpp c++ link errors
Hello mates!
I´m trying to compile the simplest C++ project wit amidevcpp for classic Amiga with no success. I can do it for the rest of the targets but no for 68k and is a clean install. I get the follwing errors: Code:
Compilador: m68k-Amiga-OS3 The example is: Code:
#include <iostream> |
Looks like libnix is linking before libstdc++. Order is significant.
|
It can be but it should be done right by the IDE. Will look for to how to change that per default.
Thanks samurai_crow! |
I have tried various combinations and I can only compile it if I remove -noixemul from the link stage.
|
Quote:
I believe that this is not really a solution and will eventually result in problems further down the road. Is there someone who is successfully using AmiDevCpp who can describe how they got around this problem and / or what their working configuration is? Thanks in Advance! |
dunno exactly, but the three functions are simply missing in libnix(!?).
they do exists in the gcc6 toolchain by bebbo. so here you can build it with: m68k-amigaos-g++.exe -noixemul hello.cpp Code:
$ m68k-amigaos-g++.exe -noixemul -Wl,--verbose hello.cpp most the things I build were done using ixemul.library and those did work. #1) you can use -Wl,--verbose linker option, this will not help here, but it lists all the libraries the linker is searching for functions. AmiDevCPP lists the output in the "Compiler Log" tab. #2) I was wrong with my assumption, other linker options, replacing "-noixemul", would build different binary, without using ixemul.library. but this was wrong and removed here :/ |
Quote:
From my perspective it is a bit of a shame that AmiDevCpp isn't really configured to just link and compile out of the box. It would probably be a bit more attractive to newbie users trying to get started with writing programs for AROS, 3.9, etc. In my case, there is no excuse really. I did have AmiDevCpp up and working fairly well once upon a time but I dropped out of the Ami scene for too long and am now trying to find my way again. If only I could find my notebooks that got packed away during the last move. :banghead |
Was the only solution to compiling C++ with AmiDevCPP to upgrade to gcc6 as mentioned earlier? I find AmiDevCPP to be fine with C programs, but I would like to port some C++ programs and I really like AmiDevCPP.
Thanks, |
Quote:
|
All times are GMT +2. The time now is 11:13. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.