Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DJGPP cross compilers (Announce)

posted by RayeR(R) Homepage, CZ, 23.02.2014, 04:33

Hi, I tested the mingw32-standalone version and I have some problem with paths. I setup the system path for:
and it was unable to compile simple test program
1) it didn't find header files
TESTGCC.C:9:19: error: no include path in which to search for stdio.h
#include <stdio.h>
so I added -I../i586-pc-msdosdjgpp/sys-include/
2) it didn't find libs .a and .o
ld: cannot find crt0.o: No such file or directory
ld: cannot find -lgcc
ld: cannot find -lc
ld: cannot find -lgcc
So I had to add -L../i586-pc-msdosdjgpp/LIB/ -L../LIB/GCC/i586-pc-msdosdjgpp/4.8.2/
but it still cannot find crt0.o even if it is placed in ../i586-pc-msdosdjgpp/LIB/ I must copy it to current directory together with source file. Then finally a binary was compiled.

Good job but can you explain how to setup paths correctly or fix it if it's a bug?

N:\DJGPP>gcc -print-search-dirs
install: n:\djgpp\i586-pc-msdosdjgpp\bin\../lib/gcc/i586-pc-msdosdjgpp/4.8.2/
programs: =n:/djgpp/i586-pc-msdosdjgpp/bin/../libexec/gcc/i586-pc-msdosdjgpp/4.8
libraries: =n:/djgpp/i586-pc-msdosdjgpp/bin/../lib/gcc/i586-pc-msdosdjgpp/4.8.2/

N:\DJGPP>gcc -print-multi-os-directory

N:\DJGPP>gcc -print-multi-directory

N:\DJGPP>gcc -print-sysroot


DOS gives me freedom to unlimited HW access.


Complete thread:

Back to the forum
Board view  Mix view
15275 Postings in 1373 Threads, 253 registered users, 22 users online (0 registered, 22 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum