O.K.
This is the first step of a project I am starting so any help is
appreciated!
Has anyone got PPTP (PopTop) working with SuSEfirewall2? I have
everything working without the firewall and when I enable the firewall I
can login but I can't ping the system behind the firewall. Any ideas? I
have each working but not together.
Thanks!
Robert
Hi All
I'm trying to start Linux programming but keep coming up against problems. The
latest one is OpenGL programming with a Geforce 3 graphics card. I'm told
that I have to use the NVidia OpenGL libraries (nvsdk) but having downloaded
it, it seems to be totally Windows. I have no idea how to use it (if it can
be used under Linux) and even the docs are in Windows formats. Can anyone
help me on this or do I have to throw this otherwise good card away and start
again?
TIA
Stewart Taylor
Hi,
I'd like to ask a (basic) question about operator post inc (lvalue++).
I've this code fragment:
/**************/
int y = 10;
int z;
z = y++;
cout << "z = " << z << '\n';
int x = 10;
x = x++;
cout << "x = " << x << '\n';
/**************/
The execution results in:
z = 10
x = 11
I'm confused why x became 11, because the post inc. operator has
higher precedence than assignment, so given an expressoin x = x++,
x++ is evaluated first. The signature for post inc. is T operator++(int).
So the return value of x++ is 10 (x itself will be modified to 11), but
then the expression of x = (x++) become x = ret_val_of_x_plus_plus,
which is x = 10? Am I correct?
Regards,
Verdi
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
Keith Powell wrote:
> I have been trying to compile a .tar.gz file.
>
> ./configure is OK, but make gives these errors which I can't understand. Can
> anyone help please?
>
> Last part of log is:
>
> logcore.h:25: db3/db.h: No such file or directory
> In file included from mainview.h:23,
> from kpsk.h:31,
> from globals.h:22,
> from dcddlg.cpp:22:
> gttextwidget.h:28: qtableview.h: No such file or directory
> In file included from waterfall.h:28,
> from globals.h:23,
> from dcddlg.cpp:22:
> auxwindow.h:21: ktmainwindow.h: No such file or directory
> make[3]: *** [dcddlg.o] Error 1
> make[3]: Leaving directory `/home/keith/Documents/kpsk-0.9.3/kpsk'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/keith/Documents/kpsk-0.9.3/kpsk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/keith/Documents/kpsk-0.9.3'
> make: *** [all] Error 2
>
> (I accidentally downloaded it into the Documents directory instead of the
> Download directory!)
This is probably best asked on the suse-programming-e list. The problem
files are qtableview.h and ktmainwindow.h. These are probably expecting
the qt and kde library include files (QT and KDE devel RPMs).
I think qtableview.h is part of QT 2.3.2 but not QT 3.0, which might be
part of the problem.
It should not matter where you compile a package.
JDL
Good morning Jesse,
Thank you very much your assistance.
You are right. It works now.
> This seems to be working for me, see if you are leaving anything out:
> $ g++ -c -g t4.c
> $ g++ -o t4 t4.o
> $ gdb t4
The flwg to be noted:
without option "-g" in "g++ -g -o filename filename.cpp", in contrast to the
things I experienced under Suse 7.2, debugging does no longer work now. The
same error msg "init.c: No such file or directory." is produced.
Regards,
Setyo
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
I've just installd SusE 8.0 on my home computer.
I've installed Octave and Kpl and Kmathplot.
I'm a Physics graduate student eager to grab as much scintific s/w
packages as I can!
I'm paricularly interested in any other s/w package that deals with
O.D.Es and P.D.Es and BioChemistry that is available with SuSE 8.0 from
the distribution kit or from the web.
How many of this s/w packages can be installed and run on Red Hat ???
Thank you in advance for your attention.
MEM
Jesse,
Thanks for your advices.
> Try installing package ncurses-devel. And then do a 'make distclean'
> in the gdb-5.2 source.
I have installed ncurses-devel. Then I did the flwg:
- ./configure
- make
- make install
- make distclean
gdb 5.2 has been installed.
But the "list" function still does not work well, with the same error
messages "init.c: No such file or directory."
Setyo
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
Hi Jesse & John,
I am using gdb version 5.1.1. Following your tips, I just tried to install
gdb 5.2.
Now I am facing an installation problem. The last few lines after typing
./configure show flwg messages:
checking compiler warning flags... -Wimplicit -Wreturn-type -Wcomment
-Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
checking for cygwin... no
checking for tgetent in -lncurses... (cached) no
checking for tgetent in -lHcurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... (cached) no
checking for tgetent in -lcurses... (cached) no
checking for tgetent in -lterminfo... no
configure: error: Could not find a term library
Then 'make'-command does have any effect. So the installation failed.
gcc I am using is that of version 2.95.3. The newer version gcc 3.0 has been
installed as well, and is occasionally used.
regards,
setyo
> Setyo Nugroho writes:
> > Hi John,
> > No, init.c is not mentioned anywhere in the program.
> >
> > Even for a simple prog like below, I cannot display (list) the prog us
> ing
> > gdb.
>
> What version of gdb? I have had varying success with different 5.x
> versions of gdb. 5.2 seems to be the best 5.x yet. A lot of the revampi
> ng
> of gdb had to do with C++, so I would try downloading and recompiling
> a newer version than the one you have. I think you can find them here:
>
> ftp://ftp.gnu.org/gnu/gdb
>
> We have a lot of problems with 5.x gdb on other architectures just using
> it
> to debug C. We have had to stick with 4.17 on Sun, and 4.18 on Compaq ju
> st
> to debug anything. The linux stuff seems to be half way decent.
>
>
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
On SuSE 8.0, when I use emacs editor to view an MSDOS file, I see the funny ^M
characters at the end.
On the usenet, people suggest searching-replacing ^M, but I don't like this
solution. XEmacs is OK and its MULE environment correctly recognizes and
converts the ^M.
Has anyone gotten emacs to work with DOS files? I don't like XEmacs.
Salman
Salman,
I don't know how to do what you want either, but it almost sounds like you are trying to write a shared memory application.
If so, shared memory is definitely the way to go, and standard across most varieties of UNIX.
Of course, shared memory requires both programs have code to handle it, so you may not have that flexibility.
Greg
>> Hi:
>> I am writing an application that needs to read another process's memory
>> without affecting the target processor whatsoever. This is different from
>> a
>> source line debugger that has to stop the application. Someone told me
>> that
>> on Solaris, you fopen /proc/<process-id> file, fseek to the correct
>> offset,
>> and then fread the required # of bytes.
>> On Linux, things a different. There is not /proc/<process-id> file.
>> Rather
>> /proc/<process-id> is a directory in which you find a file named mem. If
>> I
>> cat this file for a process, I get nothing.
>> Anyone got any idea how to read this file? I wrote this program, but it
>> fails.
>> I also heard (but did not confirm) that on Linux, you must first attach to
>> the
>> target process using the ptrace function. But doing so, stops the
>> execution
>> of the running process----I don't want that. This would be unacceptable.
>> #include <stdio.h>
>> #include <unistd.h>
>> //#include <sys/ptrace.h>
>> int main()
>> {
>> FILE* pFile;
>> char buffer[4];
>> int temp;
>> float value;
>> pFile = fopen("/proc/1673/mem", "rb+");
>> if(pFile == 0)
>> return -1;
>> // I got the address of a global variable in the
>> // process from objdump
>> temp = fseek(pFile, 0x8050b50, SEEK_SET);
>> // this call fails :-(
>> temp = fread(buffer, 4, 1, pFile);
>> value = *((float*)(buffer));
>> return 0;
>> }
>> --
>> To unsubscribe, email: suse-programming-e-unsubscribe(a)suse.com
>> For additional commands, email: suse-programming-e-help(a)suse.com
>> Archives can be found at: http://lists/archive/suse-programming-e