[Mplayer-os2] gcc-s config problema-m

Biro Tamas tami at freemail.hu
Mon Mar 18 19:36:04 CET 2002


Hi!

  - Feltettem a leiras szerint a 3.0.2 gcc-t.

  - Config.sys-ben a kovetkezok vannak:

REM ***************************************
REM EMX Compiler
REM ***************************************
SET
CPLUS_INCLUDE_PATH=D:\emx\include\g++-v3;D:\emx\include\cpp;D:\emx\include;
SET C_INCLUDE_PATH=D:\emx\include
SET LIBRARY_PATH=D:\emx\lib
SET PROTODIR=D:\emx\include\cpp\gen
SET GCCLOAD=5
SET GCCOPT=-pipe
SET TERM=mono
SET TERMCAP=D:\emx\etc\termcap.dat
SET INFOPATH=D:\emx\info
SET OBJC_INCLUDE_PATH=D:\emx\include
SET EMXBOOK=emxdev.inf+emxlib.inf+emxgnu.inf+emxbsd.inf
SET HELPNDX=emxbook.ndx

  - adott a kov. teszt progi: test.cpp

#include <iostream.h>
using namespace std;
int main()
{
cout<<"Hello World"<<endl;
return 0;
}

  - ha futtatom 'gcc test.cpp' akkor a kov. hibasorozatot kapom:

[D:\tami\c-prog]>gcc test.cpp
cc1plus: Invalid option `-iprefix'
cc1plus: Invalid option `-D__GNUC__=3'
cc1plus: Invalid option `-D__GNUC_MINOR__=0'
cc1plus: Invalid option `-D__GNUC_PATCHLEVEL__=2'
cc1plus: Invalid option `-D__32BIT__'
cc1plus: Invalid option `-D__EMX__'
cc1plus: Invalid option `-D__OS2__'
cc1plus: Invalid option `-Dunix'
cc1plus: Invalid option `-D__32BIT__'
cc1plus: Invalid option `-D__EMX__'
cc1plus: Invalid option `-D__OS2__'
cc1plus: Invalid option `-D__unix__'
cc1plus: Invalid option `-D__unix'
cc1plus: Invalid option `-Asystem=unix'
cc1plus: Invalid option `-Asystem=posix'
cc1plus: Invalid option `-Asystem=emx'
cc1plus: Invalid option `-D__NO_INLINE__'
cc1plus: Invalid option `-D__STDC_HOSTED__=1'
cc1plus: Invalid option `-Acpu=i386'
cc1plus: Invalid option `-Amachine=i386'
cc1plus: Invalid option `-Di386'
cc1plus: Invalid option `-D__i386'
cc1plus: Invalid option `-D__i386__'
cc1plus: Invalid option `-D__tune_i386__'
cc1plus: Invalid option `-D__GNUG__=3'
cc1plus: Invalid option `-D__GXX_DEPRECATED'
cc1plus: Invalid option `-D__EXCEPTIONS'
cc1plus: Invalid option `-D__GXX_ABI_VERSION=100'
test.cpp:1: undefined or invalid # directive
test.cpp: In function `int main()':
test.cpp:5: `cout' undeclared (first use this function)
test.cpp:5: (Each undeclared identifier is reported only once
test.cpp:5: for each function it appears in.)
test.cpp:5: `endl' undeclared (first use this function)


  - Tudja valaki miert van ez?? Mert amig eza kis peldaprogi nem fut
    addig nemigazan tudok tovabblepni.

  - Kofa ha neked ez fut, akkor mi van a config.sys-edbe beallitva?

Tami
|-------------------------------------------------------|
  Biro Tamas, HG1DFB -= Member of Hungarian Team OS/2 =-
  Biatorbagy  #os2hun  http://os2.rulez.org/index.html
  mailto:tami at freemail.hu http://www.tami.hu/index.html




More information about the MPlayer-os2 mailing list