public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41420]  New: Command-line defines(-D) are not working with include(-I)
@ 2009-09-20 16:12 smal dot root at gmail dot com
  2009-09-20 16:41 ` [Bug c++/41420] " rguenth at gcc dot gnu dot org
  2009-09-20 17:30 ` smal dot root at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: smal dot root at gmail dot com @ 2009-09-20 16:12 UTC (permalink / raw)
  To: gcc-bugs

We have simple source file: file.64.cpp
int main()
{
#ifdef SOME64
printf("64\r\n");
#else
printf("32\r\n");
#endif
return 0;
}

So. If we build file with that command
$CC -DSOME64 -I../../common/src -O0 -g3 -Wall -c "systemcontroller.64.cpp"
then SOME64 are undefined in file(../../common/src is valid path).
if we erase include block(-I) or write invalid path like this
$CC -DSOME64 -I../../common/src_1 -O0 -g3 -Wall -c "systemcontroller.64.cpp"
than everithing work fine... i mean SOME64 are defined in file.

$CC can be g++, gcc, cc, c++.

os: Bluewhite64-current
gcc-config:
Reading specs from /usr/lib/gcc/x86_64-pc-linux/4.3.3/specs
Target: x86_64-pc-linux
Configured with: ../gcc-4.3.3/configure --prefix=/usr --libdir=/usr/lib
--enable-shared --enable-bootstrap
--enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
--enable-checking=release --with-system-zlib --disable-libunwind-exceptions
--enable-__cxa_atexit --enable-libssp --with-gnu-ld --verbose
--disable-multilib --target=x86_64-pc-linux --build=x86_64-pc-linux
--host=x86_64-pc-linux
Thread model: posix
gcc version 4.3.3 (GCC)


-- 
           Summary: Command-line defines(-D) are not working with include(-
                    I)
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: smal dot root at gmail dot com
 GCC build triplet: x86_64
  GCC host triplet: x86_64
GCC target triplet: x86_64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41420


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/41420] Command-line defines(-D) are not working with include(-I)
  2009-09-20 16:12 [Bug c++/41420] New: Command-line defines(-D) are not working with include(-I) smal dot root at gmail dot com
@ 2009-09-20 16:41 ` rguenth at gcc dot gnu dot org
  2009-09-20 17:30 ` smal dot root at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-09-20 16:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-09-20 16:41 -------
That is not the file you are compiling as it is not valid C++.  I bet on a
pilot error, something is included from that directory and undefining
SOME64 again.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41420


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/41420] Command-line defines(-D) are not working with include(-I)
  2009-09-20 16:12 [Bug c++/41420] New: Command-line defines(-D) are not working with include(-I) smal dot root at gmail dot com
  2009-09-20 16:41 ` [Bug c++/41420] " rguenth at gcc dot gnu dot org
@ 2009-09-20 17:30 ` smal dot root at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: smal dot root at gmail dot com @ 2009-09-20 17:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from smal dot root at gmail dot com  2009-09-20 17:30 -------
I correct clock, restart Xorg and everything work... Its good. Sorry


-- 

smal dot root at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41420


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-20 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-20 16:12 [Bug c++/41420] New: Command-line defines(-D) are not working with include(-I) smal dot root at gmail dot com
2009-09-20 16:41 ` [Bug c++/41420] " rguenth at gcc dot gnu dot org
2009-09-20 17:30 ` smal dot root at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).