Programming :: Installing Tcl/tk For Use In C++ / Error Expected Type-specifier Before Exception?
Mar 14, 2011
I have perl/tk installed and working. I tried using c++/tk and had to change the #include path in the headers to find the tk.h and tcl.h. I tried compiling a simple c++ program with g++ to test that the headers are correct. the line i type at console is:
g++ test.c cpptk.cc cpptkbase.cc -o test.bin
I fixed all previous errors, except for the following.
I m trying to write a program that use omapi but when put the include dhcpctl.h and isc/result.h i m but able to compile the source.
In file included from /usr/include/dhcpctl.h:38, from rece.c:11: /usr/local/include/omapip/omapip.h:40:22: error: dns/tsec.h: No such file or directory In file included from /usr/include/dhcpctl.h:38,
[code]....
I tried to install bind-devel-9.3.6 and 9.3.4...and still no file...
I don't know if this is the best place to ask this question. This question arose when I had a g++ compilation error: error: expected constructor, destructor, or type conversion before '.' token The above message can be correctly displayed in urxvt or xterm. But in mrxvt the '.' part can't be displayed correctly. Then I noticed that the quote signs are actually different from the usual ones and there seems no way to type ' ' from the keyboard. What are the differences and how to make mrxvt to display ' ' correctly. I found mrxvt very good and easy to configure.
I need to have a global variable PHP Code: volatile sig_atomic_t int Terminazione=0; but I get the error error: two or more data types in declaration specifier even if I have included signal.h.
Can you tell me why gcc on LINUX is giving me this error (works find on our SCO machine)/us4/prw/include/vv_sys.h:797: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
I'm a C / assembler programmer so am not use to C++, which I need to use. Basically I'm using my own versions of memcpy, but for long and int rather than char. It's for fast graphics. So I have a char array which I copy to another array. But I copy as either longs or ints, much faster. for example
i have Ubuntu10.10 (kernel-2.6.35-22-generic) installed. struct stat StatBuff;
[Code]...
I have mounted a windows share folder on /mnt. When i gave any directory within /mnt/ to stat function it fails with errorno 75. perror shows "Value too large for defined data type". Example 1 is fail but Example 2 works fine.
I have problem in installing Fedora10 on to a UsbHarddisk(transend 250GB).
After installation of some packages it is saying that "An exception has occured .It is possibly a bug.file a report to bugzilla.redhat.com".
The problem is that,ihave previously seen this kind of message a month ago.And when i tried to install the second time it is installed. Can i debug it?
I have no problem when installing Fedora on to a normalharddisk.
Another question can i install both Gnome and Kde on the disk.
I am playing around with a new chat program and I have errors that I can not figure out. Here is what I am getting.
parse.c:1638: error: dereferencing pointer to incomplete type parse.c:1638: error: dereferencing pointer to incomplete type parse.c:1638: error: dereferencing pointer to incomplete type
here is the code:
if (scan->jail_timeout == 0 && scan->location == prison) { command_type |= HIGHLIGHT; tell_player(scan, " After serving your sentence you are flung out"
I just loaded octave. I ran through a few examples of how to implement a script file. Everything works until I get to "plot". When I run the "plot" command I get the following.
octave:2> test1.m error: can't perform indexing operations for <unknown type> type sh: gnuplot: not found Just to double check my work, I ran the following code: y=[1 2 3]; plot(y);
I am writing an application that uses POSIX thread. I am spawning a threads and threads performs task in infinite loop .I have another monitor which monitors the activities of these threads. Due to some reason I have to kill one thread from monitor thread. so I use pthread_cancel() . It terminates thread however it throws exception. I searched about the exception on internet and i am able to catch the exception and handle it as well . However the exception is not thrown every time . I wanted to know under what circumstances it throws exception. Accordingly I have to write cleanup handler
To parse several XML documents I'm using libxml++. I do programming for linux angstrom-armv5te. Because compiling libxml++ for this distribution and platform was impossible, I simply included the library to my project, which workes fine. Unfortunately I'm not able not use the exception handing which effects that a simple error inside a documents makes my whole program crash. This should not happen.
Is there a way to check the documents validity before parsing or better active the exception handling for doing this.
So those of you that know me will agree that when it comes to awk I don't usually ask a lot of questions ... however this one has me stumped. I am guessing I have missed something obvious but for the life of me (and I have tested at great length) I cannot find it So the scenario is this: The following awk code should identify all versions of libgpg-error within the attached file (see below) and only show one for each version:
Ubuntu 9.10 64-bit. I was importing photos into f-spot. Then my laptop shutdown because it overheated (a different problem). Now f-spot will not open. A dialog pops up and says "F-Spot Encountered a Fatal Error. Exception has been thrown by the target of an invocation." Here are the error details:
Code: An unhandled exception was thrown: Exception has been thrown by the target of an invocation.at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
[Code]...
I've read somewhere that there might be a bug with themes, but I've changed mine back and forth. I don't really think this is a bug as much as something that happened when the computer crashed. I've tried uninstalling f-spot and reinstalling it, I get the same error above. Anybody have any idea on how to get it working again?
working on a script to update .Jar file, I have tried jar xf to unpack and jar cf to repack it is giving me java.lang.NoClassDefFoundError exception at main class. I also tried jar uf, which is also not working for me Basically my jar file requires to update date, which i do from "winrar" Manual it works fine, but now to remove "Donkey work", i want to make an script which does this all automatically, and the last stage is to update jar file which is not happening.
Iam using socket programming in one of my problem. The scenario is like this.
=>one module is working as a socket server(process p1) is able to handle client sockets on that port. =>one module is working as socket client (process p2) is connected to server socket and Tx/Rx data on this socket. This module has some more threads, based on received data from server socket it will connect to http on other thread and get information... =>one more module is working as socket client (process p3) is also connected to server socket and doing some other transactions.
Here my problem is when in presence of p2, p3 http connection taking more time than the expected. If we wont start p3(means only one server-client socket) then http connection is fast enough.
Here is my problem: I have a Vala program that includes classes with nested classes. When I try to initialize classes (using the variable type and the variable, followed by the class's arguments [three unsigned 8-bit integers] in parentheses) and try to compile the Vala code to C code what I tried to AVOID doing, as I really wanted to create a shared object file, but now I know I have to use C code as a middleman, the compiler tells me it expects a semicolon between the class variable name and its members.
What?! A semicolon in a bad place, that's for sure! Why would I want to put a semicolon *BETWEEN* the class initialization and its members? Isn't the whole point of a class to *HAVE* different members? Here is my class:
Code: public class Gtk.rgba : GLib.Object { public class fg_color : GLib.Object { private uint8 red; private uint8 green; private uint8 blue; //Constructor public fg_color(uint8 r, uint8 g, uint8 b) { [Code].....
I just installed OS 11.4 this morning. Was previously on CentOS. I chose to have it import the partition & raid setup during install. Now when it boots it hangs with
"Could not find /dev/disk/by-label //" "Want me to fall back to /dev/disk/by_id/ata-ST(lots of drive stuff) -part2 (Y/n)" If I just hit ENTER at that point the boot will go on and it runs fine, but it stalls every time with that same error on boot. I did quite a bit of searching with Google and here (the search here considers every word in the error message to be too short or too common).
I am trying to install NS-2.1b9a in Fedora 8.0. I have already installed gcc-3.3 and made new link to the newly installed gcc. I used patch made for NS-2.1b9a (found in [URL]...-8-ubuntu.html) to install in Fedora 8.0. Now, when I run ./install I get follwoing error.
I useing a 4bg usb stick which has been formatted on ubuntu 10.10 i am installing a linux bootable OS on the disk-debian just as the bootloader is installed on the usb I get a fail /error reponce
"an uncaught exception was raised: invaild version string "GNU/Linux"