View Single Post
Old 05 October 2018, 16:20   #947
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
Quote:
Originally Posted by asymetrix View Post
Installed on Windows 10, 64bit.

I used ./bin to get direct access to gcc.
Im getting a command line : error .

Code:
<C:\amiga-gcc>.\bin\m68k-amigaos-gcc.exe hello.c hello -Os -noixemul
/amiga-gcc/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: hello:(.text+0x68): multiple definition of `_exit'; C:/amiga-gcc/m68k-amigaos/libnix/lib/ncrt0.o:C:/amiga-gcc/m68k-amigaos/libnix/lib/ncrt0.o:(.text+0x68): first defined here
/amiga-gcc/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: hello:(.text+0x68): multiple definition of `exit'
/amiga-gcc/lib/gcc/m68k-amigaos/6.4.1b/../../../../m68k-amigaos/bin/ld: hello:(.text+0xe8): multiple definition of `main'; /Users/angel/AppData/Local/Temp/ccYVojmD.o:(.text+0x1c): first defined here
collect2: error: ld returned 1 exit status

C:\amiga-gcc>
Your problem is a missing '-o' since that commandline tries to create a file named 'a.out' using 'hello.c' plus 'hello' as input files.

(And you should add that bin folder to the path or use the provided cmdline.bat which does this for you.)
bebbo is offline  
 
Page generated in 0.04470 seconds with 11 queries