VBCC – je n’arrive pas à installer correctement…
2 sujets de 1 à 2 (sur un total de 2)
-
Bonjour,
On va déjà commencé par clarifier une chose, je suis une quiche sans lardon en dev !
Mais là, je crois que j’ai touché le fond, je n’arrive même pas à configurer VBCC correctement pour un traditionnel « Hello world! ».Je vous rassure, peut-être, mais je n’ai pas l’intension de devenir développeur, vous comprendrez aisément que je n’en ai pas les capacités.
C’est juste que je suis curieux et que j’avais envie de tester des trucs/idées en C sur AMIGA.Là, je suis sur WinUEA, Workbench 3.9.
J’ai donc voulu m’installer VBCC 0.9, j’ai regardé plusieurs tutos qui naturellement m’indique de faire globalement la même chose.Le chemin de mon répertoire VBCC est « Applications:Dev/VBCC »
La target m68K « Applications:Dev/vbcc/targets/m68k-amigaos »
Et j’ai le CD dev 2.1 dont j’ai extrait les NDK, et j’ai les includes là (j’ai testé avec les différents NDK du CD, c’est pareil – « Applications:Dev/Includes/ZZZ_NDK_CD_DEV/NDK_3.5/include/INCLUDE_h »Mon user-startup :
;BEGIN vbcc
assign >NIL: vbcc: Applications:Dev/VBCC
assign >NIL: C: vbcc:bin ADD
setenv VBCC vbcc:
;END vbcc
;BEGIN vbcc-m68k-amigaos
assign >NIL: vincludeos3: Applications:Dev/vbcc/targets/m68k-amigaos/include
assign >NIL: vincludeos3: « Applications:Dev/Includes/ZZZ_NDK_CD_DEV/NDK_3.5/include/INCLUDE_h » add
assign >NIL: vlibos3: Applications:Dev/vbcc/targets/m68k-amigaos/lib
;END vbcc-m68k-amigaosLe code, trouvé sur RICHARD FAWCETT’S WEBSITE, c’est ça :
#include <stdio.h>int main(int argc, char** argv )
{
printf( « Salut monde. » );
return 0;
}La commande, c’est ça :
vc hello.c -o helloEt le message d’erreur, c’est ça :
> printf( « Salut monde. » );
warning 213 in line 6 of « hello.c »: varargs function called without prototype in scope
vc.lib(_main.c): In « __main »:
Error 21: vc.lib(_main.c) (CODE+0xb6): Reference to undefined symbol __ctors.
vc.lib(_main.c): In « __Exit »:
Error 21: vc.lib(_main.c) (CODE+0x6): Reference to undefined symbol __dtors.
Error 21: vc.lib(_main.c) (CODE+0xc): Reference to undefined symbol __dtors.
vc.lib(stdlib/malloc.c): In « _malloc »:
Error 21: vc.lib(stdlib/malloc.c) (CODE+0x64): Reference to undefined symbol _LibAllocPooled.
Error 21: vc.lib(stdlib/malloc.c) (CODE+0x3c): Reference to undefined symbol _LibCreatePool.
vc.lib(stdlib/malloc.c): In « __freemem »:
Error 21: vc.lib(stdlib/malloc.c) (CODE+0x10): Reference to undefined symbol _LibDeletePool.
vc.lib(stdlib/malloc.c): In « _free »:
Error 21: vc.lib(stdlib/malloc.c) (CODE+0xa6): Reference to undefined symbol _LibFreePooled.
vlink failed returncode 20
vlink -bamigahunk -x -Bstatic -Cvbcc -nostdlib -mrel vlibos3:startup.o « T:t_4_0.o » -s -Rshort -Lvlibos3: -lvc -o hello failedJe ne comprends pas ce qu’il me demande, ce que j’ai fait de mal…
Teutch !
A1230 Blizzard IV + 8Mo + DD 320Mo + WB 3.0 (en vacances)
A4000 PPC 604 + CyberVision + TOCCATA + 128Mo + WB 3.9 (en vacances)
WinUAE (pour assurer la perm)
2 sujets de 1 à 2 (sur un total de 2)
- Vous devez être connecté pour répondre à ce sujet.
› Forums › AmigaOS, MorphOS et AROS › Développement › VBCC – je n’arrive pas à installer correctement…