Mail Archives: cygwin-developers/1998/10/02/02:49:20

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: egcs-1.1b
2 Oct 1998 02:49:20 -0700 :
Message-ID: <>
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com


Could someone explain the following behaviour of the
g++ compiler in egcs-1.1b?

I have compiled it with egcs-1.0.2.

E.g. the line
    static const int NO_COPY cygwin_dll_version_major
= 			                             CYGWIN_DLL_VERSION_MAJOR;

from winsup/ where NO_COPY is

    #define NO_COPY __attribute__((section(".data_cygwin_nocopy")))

compiled with

gcc -c -fno-rtti -fno-exceptions -Wall -Wunused  -I./include -I.
-I../libstdc++/stl -I../libio -I../libio -I../newlib/libc/sys/cygwin32
-I../newlib/libc/include -I./config/i386 -nostdinc++ -o dcrt0.o

results in: int const cygwin_dll_version_major causes a section type
make: *** [dcrt0.o] Error 1

Erasing `const' works, but I don't understand, what happens.
Is it a bug or am I too dull or what?


- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019