* [sisyphus] c++ includes
@ 2003-03-25 6:39 Andrey Khavryuchenko
2003-03-25 10:49 ` [sisyphus] " Mikhail Zabaluev
0 siblings, 1 reply; 8+ messages in thread
From: Andrey Khavryuchenko @ 2003-03-25 6:39 UTC (permalink / raw)
To: sisyphus
Hi!
Это нормально, что g++ не видит собственных инклюдов, пока носом туда не
ткнуть?
$ echo "#include <cstring>" | /usr/bin/g++-3.2 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
<stdin>:1:19: cstring: No such file or directory
$ echo "#include <cstring>" | /usr/bin/g++-3.2 -I/usr/include/c++/3.2.1/ -E -xc++ - | head
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
# 1 "/usr/include/c++/3.2.1/cstring" 1
# 48 "/usr/include/c++/3.2.1/cstring" 3
# 1 "/usr/include/c++/3.2.1/cstddef" 1 3
# 47 "/usr/include/c++/3.2.1/cstddef" 3
--
Andrey V Khavryuchenko http://www.kds.com.ua/
Silver Bullet Software Solutions http://www.kds.com.ua/training/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 6:39 [sisyphus] c++ includes Andrey Khavryuchenko
@ 2003-03-25 10:49 ` Mikhail Zabaluev
2003-03-25 12:09 ` Andrey Khavryuchenko
0 siblings, 1 reply; 8+ messages in thread
From: Mikhail Zabaluev @ 2003-03-25 10:49 UTC (permalink / raw)
To: sisyphus
Hello Andrey,
On Tue, Mar 25, 2003 at 08:39:13AM +0200, Andrey Khavryuchenko wrote:
>
> Это нормально, что g++ не видит собственных инклюдов, пока носом туда не
> ткнуть?
Может быть, дело в -E (вызов препроцессора)?
В обычном режиме, над файлом, работает?
> $ echo "#include <cstring>" | /usr/bin/g++-3.2 -E -
> # 1 "<stdin>"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "<stdin>"
> <stdin>:1:19: cstring: No such file or directory
>
> $ echo "#include <cstring>" | /usr/bin/g++-3.2 -I/usr/include/c++/3.2.1/ -E -xc++ - | head
> # 1 "<stdin>"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "<stdin>"
> # 1 "/usr/include/c++/3.2.1/cstring" 1
> # 48 "/usr/include/c++/3.2.1/cstring" 3
>
> # 1 "/usr/include/c++/3.2.1/cstddef" 1 3
> # 47 "/usr/include/c++/3.2.1/cstddef" 3
>
>
>
> --
> Andrey V Khavryuchenko http://www.kds.com.ua/
> Silver Bullet Software Solutions http://www.kds.com.ua/training/
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@altlinux.ru
> http://altlinux.ru/mailman/listinfo/sisyphus
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
Be it our wealth, our jobs, or even our homes; nothing is safe while the
legislature is in session.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 10:49 ` [sisyphus] " Mikhail Zabaluev
@ 2003-03-25 12:09 ` Andrey Khavryuchenko
2003-03-25 12:20 ` Mikhail Zabaluev
0 siblings, 1 reply; 8+ messages in thread
From: Andrey Khavryuchenko @ 2003-03-25 12:09 UTC (permalink / raw)
To: sisyphus
Mikhail,
"MZ" == Mikhail Zabaluev wrote:
MZ> On Tue, Mar 25, 2003 at 08:39:13AM +0200, Andrey Khavryuchenko wrote:
>> Это нормально, что g++ не видит собственных инклюдов, пока носом туда не
>> ткнуть?
MZ> Может быть, дело в -E (вызов препроцессора)?
MZ> В обычном режиме, над файлом, работает?
Нет:
$ echo "#include <bits/c++config.h>" | /usr/bin/c++ -xc++ -
<stdin>:1:28: bits/c++config.h: No such file or directory
$ find /usr/include/ -name c++config.h
/usr/include/c++/3.2.1/i586-alt-linux/bits/c++config.h
--
Andrey V Khavryuchenko http://www.kds.com.ua/
Silver Bullet Software Solutions http://www.kds.com.ua/training/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 12:09 ` Andrey Khavryuchenko
@ 2003-03-25 12:20 ` Mikhail Zabaluev
2003-03-25 12:28 ` Andrey Khavryuchenko
0 siblings, 1 reply; 8+ messages in thread
From: Mikhail Zabaluev @ 2003-03-25 12:20 UTC (permalink / raw)
To: sisyphus
Hello Andrey,
On Tue, Mar 25, 2003 at 02:09:41PM +0200, Andrey Khavryuchenko wrote:
>
> >> Это нормально, что g++ не видит собственных инклюдов, пока носом туда не
> >> ткнуть?
>
> MZ> Может быть, дело в -E (вызов препроцессора)?
> MZ> В обычном режиме, над файлом, работает?
>
> Нет:
>
> $ echo "#include <bits/c++config.h>" | /usr/bin/c++ -xc++ -
> <stdin>:1:28: bits/c++config.h: No such file or directory
Пожалуйста, без извращений с потоками.
Из файла работает?
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
For every credibility gap, there is a gullibility fill.
-- R. Clopton
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 12:20 ` Mikhail Zabaluev
@ 2003-03-25 12:28 ` Andrey Khavryuchenko
2003-03-25 13:05 ` Mikhail Zabaluev
0 siblings, 1 reply; 8+ messages in thread
From: Andrey Khavryuchenko @ 2003-03-25 12:28 UTC (permalink / raw)
To: sisyphus
Mikhail,
"MZ" == Mikhail Zabaluev wrote:
MZ> Пожалуйста, без извращений с потоками.
MZ> Из файла работает?
What the hell the difference is?
[akhavr@netmaster tmp]$ cat t.c
#include <bits/c++config.h>
[akhavr@netmaster tmp]$ /usr/bin/g++ t.c
t.c:1:28: bits/c++config.h: No such file or directory
[akhavr@netmaster tmp]$
--
Andrey V Khavryuchenko http://www.kds.com.ua/
Silver Bullet Software Solutions http://www.kds.com.ua/training/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 12:28 ` Andrey Khavryuchenko
@ 2003-03-25 13:05 ` Mikhail Zabaluev
2003-03-25 13:29 ` Sergey Vlasov
2003-03-25 13:46 ` Andrey Khavryuchenko
0 siblings, 2 replies; 8+ messages in thread
From: Mikhail Zabaluev @ 2003-03-25 13:05 UTC (permalink / raw)
To: sisyphus
Hello Andrey,
On Tue, Mar 25, 2003 at 02:28:59PM +0200, Andrey Khavryuchenko wrote:
>
> MZ> Пожалуйста, без извращений с потоками.
> MZ> Из файла работает?
>
> What the hell the difference is?
>
> [akhavr@netmaster tmp]$ cat t.c
> #include <bits/c++config.h>
> [akhavr@netmaster tmp]$ /usr/bin/g++ t.c
> t.c:1:28: bits/c++config.h: No such file or directory
> [akhavr@netmaster tmp]$
А теперь то же самое с t.cc :)
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
186,000 Miles per Second. It's not just a good idea. IT'S THE LAW.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 13:05 ` Mikhail Zabaluev
@ 2003-03-25 13:29 ` Sergey Vlasov
2003-03-25 13:46 ` Andrey Khavryuchenko
1 sibling, 0 replies; 8+ messages in thread
From: Sergey Vlasov @ 2003-03-25 13:29 UTC (permalink / raw)
To: sisyphus
On Tue, 25 Mar 2003 16:05:26 +0300
Mikhail Zabaluev <mhz@altlinux.org> wrote:
> Hello Andrey,
>
> On Tue, Mar 25, 2003 at 02:28:59PM +0200, Andrey Khavryuchenko wrote:
> >
> > MZ> Пожалуйста, без извращений с потоками.
> > MZ> Из файла работает?
> >
> > What the hell the difference is?
> >
> > [akhavr@netmaster tmp]$ cat t.c
> > #include <bits/c++config.h>
> > [akhavr@netmaster tmp]$ /usr/bin/g++ t.c
> > t.c:1:28: bits/c++config.h: No such file or directory
> > [akhavr@netmaster tmp]$
>
> А теперь то же самое с t.cc :)
На самом деле с g++-3.2 работают оба варианта (если вызывать именно
g++). А вот с g++-2.96 оба, естественно, не работают.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [sisyphus] Re: c++ includes
2003-03-25 13:05 ` Mikhail Zabaluev
2003-03-25 13:29 ` Sergey Vlasov
@ 2003-03-25 13:46 ` Andrey Khavryuchenko
1 sibling, 0 replies; 8+ messages in thread
From: Andrey Khavryuchenko @ 2003-03-25 13:46 UTC (permalink / raw)
To: sisyphus
Mikhail,
"MZ" == Mikhail Zabaluev wrote:
MZ> Hello Andrey,
MZ> On Tue, Mar 25, 2003 at 02:28:59PM +0200, Andrey Khavryuchenko wrote:
>>
MZ> Пожалуйста, без извращений с потоками.
MZ> Из файла работает?
>>
>> What the hell the difference is?
>>
>> [akhavr@netmaster tmp]$ cat t.c
>> #include <bits/c++config.h>
>> [akhavr@netmaster tmp]$ /usr/bin/g++ t.c
>> t.c:1:28: bits/c++config.h: No such file or directory
>> [akhavr@netmaster tmp]$
MZ> А теперь то же самое с t.cc :)
[akhavr@netmaster tmp]$ echo "#include <bits/c++config.h>" > t.cc
[akhavr@netmaster tmp]$ /usr/bin/g++ t.cc
t.cc:1:28: bits/c++config.h: No such file or directory
[akhavr@netmaster tmp]$ /usr/bin/g++-3.2 t.cc
t.cc:1:28: bits/c++config.h: No such file or directory
[akhavr@netmaster tmp]$
--
Andrey V Khavryuchenko http://www.kds.com.ua/
Silver Bullet Software Solutions http://www.kds.com.ua/training/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-03-25 13:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 6:39 [sisyphus] c++ includes Andrey Khavryuchenko
2003-03-25 10:49 ` [sisyphus] " Mikhail Zabaluev
2003-03-25 12:09 ` Andrey Khavryuchenko
2003-03-25 12:20 ` Mikhail Zabaluev
2003-03-25 12:28 ` Andrey Khavryuchenko
2003-03-25 13:05 ` Mikhail Zabaluev
2003-03-25 13:29 ` Sergey Vlasov
2003-03-25 13:46 ` Andrey Khavryuchenko
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git