Re: about C program CPP macro

2013-12-10 Thread Atle Solbakken
Den 10. des. 2013 15:19, skrev Nicol TAO: I want to using #define / #undef, and want to put them in a single macro, some thing like: #define DECALRE_TYPE(type) \ { #undef __curr_type; #define _curr_type type; } Why do you need to #undef it first? Can you do without the #undef and use type

about C program CPP macro

2013-12-10 Thread Nicol TAO
, this can not passed with CPP, but I need this logical here. Generally, the problem comes from #define ser_field(type, var) \ ser_new_field(tra, #type, #var, offsetof(struct_type, var)) I do not want another additional parameter in this macro like #define ser_field(type,var,struct_type

Re: don't really need cpp-3.4, do I?

2008-08-09 Thread H.S.
David Witbrodt wrote: However, I would like to keep this version of gcc. cpp-3.4 appears to be just the pre-processor. I supposed I can remove this and still be able to use the 3.4 gcc compiler (I want to retain libg2c0 as well). Do I understand this right? Sure, if you want to program in

Re: why can't I update libg2c0 [was: Re: don't really need cpp-3.4, do I?]

2008-08-09 Thread H.S.
David Witbrodt wrote: hmm ... just took another look at the package descriptions. It seems that the problem is libg2c0. How come this still depends on an older version of gcc-3.4.6? I link some of my programs with some FORTRAN libraries and need libg2c0. So for now I have been keeping gcc-3.4

Re: why can't I update libg2c0 [was: Re: don't really need cpp-3.4, do I?]

2008-08-09 Thread David Witbrodt
> hmm ... just took another look at the package descriptions. It seems > that the problem is libg2c0. How come this still depends on an older > version of gcc-3.4.6? I link some of my programs with some FORTRAN > libraries and need libg2c0. So for now I have been keeping gcc-3.4 at > its olde

Re: don't really need cpp-3.4, do I?

2008-08-09 Thread David Witbrodt
> However, I would like to keep this version of gcc. cpp-3.4 appears to be > just the pre-processor. I supposed I can remove this and still be able > to use the 3.4 gcc compiler (I want to retain libg2c0 as well). Do I > understand this right? Sure, if you want to program in C

why can't I update libg2c0 [was: Re: don't really need cpp-3.4, do I?]

2008-08-09 Thread H.S.
-6) but 3.4.6-8 is to be installed. The following actions will resolve these dependencies: Remove the following packages: cpp-3.4 hmm ... just took another look at the package descriptions. It seems that the problem is libg2c0. How come this still depends on an older version of gcc-3.4.6? I

don't really need cpp-3.4, do I?

2008-08-09 Thread H.S.
is to be installed. The following actions will resolve these dependencies: Remove the following packages: cpp-3.4 However, I would like to keep this version of gcc. cpp-3.4 appears to be just the pre-processor. I supposed I can remove this and still be able to use the 3.4 gcc compiler (I

Re: X bombs, calls for /usr/bin/cpp at startup - Why? Was: Surefire Xorg driver/config?

2007-09-14 Thread Gordon Pedersen
> I did not install xorg package earlier - I began by installing > > xserver-xorg-video-vesa, then added font and xterm packages. > > Installed the xorg meta-pkg now using apt-get - it caught several > > extraneous dependencies. > > > > The /usr/bin/cpp error

Re: X bombs, calls for /usr/bin/cpp at startup - Why? Was: Surefire Xorg driver/config?

2007-09-14 Thread Andrew Sackville-West
On Fri, Sep 14, 2007 at 05:07:17PM -0500, Gordon Pedersen wrote: > On 9/14/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 14, 2007 at 12:35:20PM -0500, Gordon Pedersen wrote: > > > > are there any errors in ~/.xsession-errors? > > >

Re: X bombs, calls for /usr/bin/cpp at startup - Why? Was: Surefire Xorg driver/config?

2007-09-14 Thread Gordon Pedersen
On 9/14/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: > On Fri, Sep 14, 2007 at 12:35:20PM -0500, Gordon Pedersen wrote: > > > are there any errors in ~/.xsession-errors? > > sh: /usr/bin/cpp: No such file or directory > apt-cache rdepends cpp > shows, among

Re: X bombs, calls for /usr/bin/cpp at startup - Why? Was: Surefire Xorg driver/config?

2007-09-14 Thread Andrew Sackville-West
On Fri, Sep 14, 2007 at 12:35:20PM -0500, Gordon Pedersen wrote: > I am top-posting the crucial error message. Context follows below, > and in prior posts this thread. > > > are there any errors in ~/.xsession-errors? maybe there's a clue > > there. > > s

X bombs, calls for /usr/bin/cpp at startup - Why? Was: Surefire Xorg driver/config?

2007-09-14 Thread Gordon Pedersen
I am top-posting the crucial error message. Context follows below, and in prior posts this thread. > are there any errors in ~/.xsession-errors? maybe there's a clue > there. sh: /usr/bin/cpp: No such file or directory What is cpp (is it same as gcc)? Why would it be referenced whi

apt-get install cpp failed

2007-08-17 Thread Siwei Zhang
Hi, Could anyone help with this? Thanks a lot. Kevin SZ [EMAIL PROTECTED]:~# apt-get install cpp-3.3 Reading Package Lists... Done Building Dependency Tree... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the

help opening a cpp file in emacs

2006-07-18 Thread Fred J.
HiI have a problem opening a .cpp file with emacsusing debian testing kernal 2.6.15 and emacs21 21.4a-3, I googled,search variables and help docs, asked at different forum for no avail.the problem happens only when I start emacs as a user but it does nothappen when I start it as root.I am

cpp/gcc versions

2005-12-15 Thread Richard Lyons
I want to set up a new box with the possibility to run the latest version of qcad. Unfortunately, this is only available built against cpp3, 5 and 6. I think sid has version 4 IIRC. Can anybody tell me if it is possible to install sarge with version 3 (or 5 or 6)? TIA -- richard -- To UNS

Help: Need Shrink for /LIB/CPP

2005-07-27 Thread David Baron
Yup. /LIB/CPP is no longer sane so I cannot get through the usual ./configure;make;make install sequence! This happened because of trying aclocal and automake to fix up an errant build by the author's instructions. Now do I fixe this up? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] w

Re: Re: configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2004-07-29 Thread Daniel Flick
I know this is old, but since I did not see a final answer, I thought I would post so others could find the answer more easily. I was getting the same problem with compiling GAIM and it turned out to be that although gcc was installed, that gcc did not include c++ support. In Debian, I had to inst

Re: configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2003-11-04 Thread Bill Moseley
On Tue, Nov 04, 2003 at 04:36:14PM +1100, Rob Weir wrote: > > cpp doesn't seem to depend on g++, where I believe cc1plus is installed. > > > > Is this a broken package? And if so, which one? > > There have been on-going reports of cpp being broken in weird ways,

Re: configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2003-11-03 Thread Rob Weir
On Mon, Nov 03, 2003 at 12:33:43PM -0800, [EMAIL PROTECTED] said > [EMAIL PROTECTED]:~$ echo "#include " > foo.cc > [EMAIL PROTECTED]:~$ /lib/cpp foo.cc > cpp: installation problem, cannot exec `cc1plus': No such file or directory > > > I'm using

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

2003-11-03 Thread moseley
[EMAIL PROTECTED]:~$ echo "#include " > foo.cc [EMAIL PROTECTED]:~$ /lib/cpp foo.cc cpp: installation problem, cannot exec `cc1plus': No such file or directory I'm using on Sid: ii autoconf2.57-11 automatic configure script builder ii cpp 3.

Re: help debugging a compiler error (cpp)

2001-01-05 Thread Tom Marshall
> And mine... > > fennywood:/usr/src# update-alternatives --display cc > cc - status is auto. > link currently points to /usr/bin/gcc > /usr/bin/gcc - priority 20 > slave cc.1.gz: /usr/share/man/man1/gcc.1.gz > Current `best' version is /usr/bin/gcc. >

Re: help debugging a compiler error (cpp)

2001-01-05 Thread Chris Gray
> Jonathan Markevich writes: jm> And mine... jm> fennywood:/usr/src# update-alternatives --display cc jm> cc - status is auto. jm> link currently points to /usr/bin/gcc jm> /usr/bin/gcc - priority 20 jm> slave cc.1.gz: /usr/share/man/man1/gcc.1.gz jm> Current es

Re: help debugging a compiler error (cpp)

2001-01-05 Thread D-Man
-D_X86_=1 | -Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES-I. | -I/usr/src/linux/include nv.c | cpp: -lang-c: linker input file unused since linking not done | cc: installation problem, cannot exec 'cc1': No such file or directory | make: *** [nv.o] Error 1 | --- | | Does a

Re: help debugging a compiler error (cpp)

2001-01-05 Thread Defresne Sylvain
ltichar -O -D__KERNEL__ -DMODULE > > > -D_LOOSE_KERNEL_NAMES -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_X86_=1 > > > -Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -I. > > > -I/usr/src/linux/include nv.c > > > cpp: -lang-c: linker input file unused since linking not do

Re: help debugging a compiler error (cpp)

2001-01-05 Thread Jonathan Markevich
-DNTRM -DRM20 -D_X86_=1 > > -Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES-I. > > -I/usr/src/linux/include nv.c > > cpp: -lang-c: linker input file unused since linking not done > > cc: installation problem, cannot exec 'cc1': No such file or directory >

Re: help debugging a compiler error (cpp)

2001-01-05 Thread Mike
Di386=1 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES-I. > -I/usr/src/linux/include nv.c > cpp: -lang-c: linker input file unused since linking not done > cc: installation problem, cannot exec 'cc1': No such file or directory > make: *** [nv.o] Error 1 > --- > > Does anyon

help debugging a compiler error (cpp)

2001-01-05 Thread Jonathan Markevich
/src/linux/include nv.c cpp: -lang-c: linker input file unused since linking not done cc: installation problem, cannot exec 'cc1': No such file or directory make: *** [nv.o] Error 1 --- Does anyone know what I need installed here? Thanks. -- Jonathan Markevich <[EMAIL PRO

highlight *.cc files as *.cpp in xemacs

2000-09-09 Thread Attila Csosz
How to get the same syntax highlight for *.cc files as for the *.cpp files (default) in XEmacs? Thanks Attila -- -- - Mail: [EMAIL PROTECTED]; Debian 2.2 Linux / 2.2.13 / exim- - Get my PGP key: gpg --keyserver

Re: cpp macros: quotes and spaces (# and ##)

1999-08-27 Thread joost witteveen
MACRO(x) #define QUOTE_MACRO(y) #y WRAP_STAT_QUOTE (at least for GNU cpp it works!) > (Please also reply to me in person, as I am not subscribed to this > list). -- joostje

cpp macros: quotes and spaces (# and ##)

1999-08-27 Thread joost witteveen
of the space in between next_ and __xstat). But this doesn't work, as apparently cpp takes everything after ## literally, and now NEXT_STAT is defined ad next_WRAP_STAT. Does anyone know how to remove the space, and make cpp expand the macro WRAP_STAT? The other, WRAP_STAT_QUOTE, also seems diffic

Re: cpp

1998-08-06 Thread Ari K Makela
Luiken, Arijan writes: > i have a question, when i installed debian (2.0) and i want to install x > windows (or something else with dselect) i get the message that the > program has dependency problems with cpp. Some programs depend on other programs i.e. in this case X needs

Re: cpp

1998-08-06 Thread jdassen
On Thu, Aug 06, 1998 at 01:38:19AM -0700, Luiken, Arijan wrote: > i have a question, when i installed debian (2.0) and i want to install x > windows (or something else with dselect) i get the message that the > program has dependency problems with cpp. > > anybody any idea&

cpp

1998-08-06 Thread Luiken, Arijan
Hi, i have a question, when i installed debian (2.0) and i want to install x windows (or something else with dselect) i get the message that the program has dependency problems with cpp. anybody any idea's ? Kind regards, Arijan -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] &

RE: Q: gcc & cpp

1997-10-18 Thread Ralph Winslow
On 17-Oct-97 Dean C. Sullinger wrote: >>> I have written a basic C program just to try >>> out gcc, the source code is... >>> >>> When I executed the application, it ran >>> yet I did not get the "This is a test" >> >>You probably got the wrong "test" program. There's one built into bash >>and t

RE: Q: gcc & cpp

1997-10-18 Thread Dean C. Sullinger
>> I have written a basic C program just to try >> out gcc, the source code is... >> >> When I executed the application, it ran >> yet I did not get the "This is a test" > >You probably got the wrong "test" program. There's one built into bash >and there's also an (equivalent) one in in /usr/bin/

Re: Q: gcc & cpp

1997-10-16 Thread Andy Dougherty
t; printf("This is a test\n"); > } > > When I compiled it I ran: > > gcc test.c -o test > > When I executed the application, it ran > yet I did not get the "This is a test" > message to show up on my screen. I have > read the doc's on gcc. Am I

Re: Q: gcc & cpp

1997-10-16 Thread Stephen Zander
"Dean C. Sullinger" wrote: > When I executed the application, it ran > yet I did not get the "This is a test" > message to show up on my screen. I have > read the doc's on gcc. Am I missing > something? I even tried using cpp and > I get the same

Q: gcc & cpp

1997-10-16 Thread Dean C. Sullinger
ecuted the application, it ran yet I did not get the "This is a test" message to show up on my screen. I have read the doc's on gcc. Am I missing something? I even tried using cpp and I get the same results. Thanks, -- [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-m

cpp

1997-10-02 Thread Marc Fleureck
Looking for cpp 2.7.2.3-1 but not in unstable (interpreters). Where can i found this ? Marc -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: I can't build kernel; cpp 2.7.2.1-5, gcc 2.7.2.1-5, libc 5.4.20-1, kernel-source-2.0.27-2

1997-03-03 Thread Alexey Naidyonov
Manoj Srivastava <[EMAIL PROTECTED]> writes: > Pardon what maybe a silly question, but do you have libc5-dev > and ncurses-dev installed? > > manoj Sure. $ dpkg -s ncurses3.0-dev Package: ncurses3.0-dev Status: install ok installed [skip] $ dpkg -s libc5-dev Package: libc5-dev S

Re: I can't build kernel; cpp 2.7.2.1-5, gcc 2.7.2.1-5, libc 5.4.20-1, kernel-source-2.0.27-2

1997-03-02 Thread Manoj Srivastava
Hi, Pardon what maybe a silly question, but do you have libc5-dev and ncurses-dev installed? manoj >>"Alexey" == Alexey Naidyonov <[EMAIL PROTECTED]> writes: Alexey> I've just installed new cpp&gcc from unstable, and it seems Alexey> doe

I can't build kernel; cpp 2.7.2.1-5, gcc 2.7.2.1-5, libc 5.4.20-1, kernel-source-2.0.27-2

1997-03-02 Thread Alexey Naidyonov
I've just installed new cpp&gcc from unstable, and it seems doesn't work. E.g. # cd /usr/src/linux/ # make menuconfig rm -f include/asm ( cd include ; ln -sf asm-i386 asm) make -C scripts/lxdialog all make[1]: Entering directory `/usr/src/kernel-source-2.0.27/scripts/lxdialo

Re: xdm cannot read Xresources via /lib/cpp

1997-01-09 Thread Rolf Obrecht
; and not even begun editing the Xresource files) > I see the same problem. At the office, I upgraded from 1.1 to 1.2.1 and Xdm cant read its Xresources, complains about the "cpp" and starts xconsole in non-iconic mode; at home, I did a fresh installation of 1.2.1 and there is

xdm cannot read Xresources via /lib/cpp

1997-01-08 Thread Steffen Neumann
arted with a plain installation and not even begun editing the Xresource files) The errormessage goes: # cd /var/log/ # cat xdm-errors /usr/X11R6/bin/xrdb: cannot run '/lib/cpp -traditional -Dlinux -D__i386__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SO

video mode solved. cpp/gcc solved. kernel, X11?

1996-12-03 Thread Dr.-Ing. Andreas Wehler
k, forget about vga=... settings, use now a resolution of 132x60. I was confused about learning dselect, especially with cycling through the sorting options. ======== cpp/gcc There is a dependency problem with cpp/gcc. gcc depends on cpp and replaces cpp! So I a) installed

Re: Replacing CPP with GCC

1996-11-27 Thread Bernd Eckenfels
Hi, > You can do this one of two ways (There may actually be more ways than > this): > dpkg -i --force-conflicts /path-to-package/gcc*.deb > dpkg --purge cpp You can even NOT do it, since gcc Depends: on cpp. Actually it would have deleted cpp already if it conflicts with gcc. Gre

Re: Replacing CPP with GCC

1996-11-27 Thread Dale Scheetz
On Tue, 26 Nov 1996, Edward Urenda wrote: > I had installed the cpp package in lieu of installing gcc. I find myself > getting more into programming and will require gcc. > > I have tried to avoid using deseled, opting to choose dpkg -i instead. > How can I remove cpp witho

Replacing CPP with GCC

1996-11-26 Thread Edward Urenda
I had installed the cpp package in lieu of installing gcc. I find myself getting more into programming and will require gcc. I have tried to avoid using deseled, opting to choose dpkg -i instead. How can I remove cpp without breaking any dependencies and replace it with gcc, since the two cannot

Re: xinitrc, X11, and cpp/GLUT

1996-11-04 Thread linh (l.) dang
"larry" == "Larry 'Daffy' Daffner" <[EMAIL PROTECTED]> writes: larry> Fulko van Westrenen writes: -> For one or another strange reason initx fails to read ~/.xinitrc -> Does anyone know what the reason can be? All configurations look -> normal to me. My .fvwmrc is read without any -> pro

xinitrc, X11, and cpp/GLUT

1996-11-02 Thread Gleb Arshinov
> "Fulko" == Fulko van Westrenen <[EMAIL PROTECTED]> writes: Fulko> On all Fulko> Unix/Linux systems I worked on there was a dos-unix Fulko> conversion program (todos/fromdos, dos2unix,...) I haven't Fulko> been able to find it in Debian. Is this correct? Check out cr: glebla

xinitrc and cpp/GLUT

1996-11-02 Thread Fulko van Westrenen
Hello, The .xinitrc problem was solved. /etc/X11/config requires xsession instead of xinitrc. xsession should be executable. Then all works. Glut was uploaded as debian package yesterday :-) Mesa still has to be upgraded to version 2 I changed from fvwm to fvwm2 and didn't see the windows freeze

Re: xinitrc, X11, and cpp/GLUT

1996-11-02 Thread Larry 'Daffy' Daffner
wm. I seem to remember having problems with fvwm freezing on me. About the only suggestion I can give here is to upgrade to fvwm2. fvwm is dead, and besides, fvwm2 is much more nicely configurable. -> I would like to install GLUT (the OpenGL toolbox). For this I need to -> make a makef

Re: xinitrc, X11, and cpp/GLUT

1996-11-01 Thread Dave Cinege
In <[EMAIL PROTECTED]>, Fulko van Westrenen <[EMAIL PROTECTED]> writes: >Hello, > >I have some problems with my Debian system, and I think it is easiest >to ask it all at once. I hope someone can help me. > For one or another strange reason initx fails to read ~/.xinitrc Does >anyone know w

Re: Bug#2807: X <-> cpp dependency?

1996-05-02 Thread Guy Maor
On Thu, 2 May 1996, Craig Sanders wrote: > Does gcc now have 'Provides: cpp'? Yes. Now it's like this: gcc - Provides: cpp, Conflicts: cpp cpp - Conflicts: gcc And they both have the /lib/cpp link. Guy

Re: Bug#2807: X <-> cpp dependency?

1996-05-02 Thread Craig Sanders
On Wed, 1 May 1996, David Engel wrote: > > > The problem is that the links /usr/bin/cpp and /lib/cpp don't come > > > with gcc. If gcc really gives everything, it should give these > > > symlinks as well. > > > > I think they now do in the very latest v

Re: Bug#2807: X <-> cpp dependency?

1996-05-02 Thread David Engel
> Does gcc now have 'Provides: cpp'? Yes. > I had to install cpp 2.7.2-6 (even though i already had gcc 2.7.2-6 > installed!) a week or so ago because netstd depended on cpp. Installing cpp shouldn't be necessary if you already have gcc. > maybe netstd should depe

Re: Bug#2807: X <-> cpp dependency?

1996-05-01 Thread David Engel
> Carlos> The problem is that the links /usr/bin/cpp and /lib/cpp don't > Carlos> come with gcc. If gcc really gives everything, it should give these > Carlos> symlinks as well. > > I think they now do in the very latest version, released yesterday. That

Re: Bug#2807: X <-> cpp dependency?

1996-05-01 Thread Dirk . Eddelbuettel
Carlos> The problem is that the links /usr/bin/cpp and /lib/cpp don't Carlos> come with gcc. If gcc really gives everything, it should give these Carlos> symlinks as well. I think they now do in the very latest version, released yesterday. -- Dir

Re: Bug#2807: X <-> cpp dependency?

1996-05-01 Thread Carlos Carvalho
David Engel ([EMAIL PROTECTED]) wrote on 30 April 1996 17:43: >> I'm somewhat confused. What precisely do you want to do ? >> >> Are cpp and gcc independent alternative packages ? If so then you >> should use Provides/Conflicts. >> >> If cpp