Software :: Compiling Beta Qt Application 'expected Declaration Specifiers Before'
Nov 22, 2010
I'm trying to compile a beta MIPS simulator application built on the Qt UI framework, called QtSpim. It's been quite a learning experience for me so far, but I've run into a roadblock.The beta can be downloaded from here: URL... (look in the column on the right).I first had trouble finding qmake, then found out that I could use qmake-qt4.
View 2 Replies
ADVERTISEMENT
Jun 15, 2011
I'm trying to compile a main.c file that contains a while statement. Embedded in the while statement are functions that are being called. After the while statement, I have 2 more functions being called, one to find the average(getaverage), and one to print the results (printstuff). I also used a header file (my.h) that contains all of the needed #define and #include, along with each of the void function() statements.
There isn't any problems with the while statement/ the functions in while, but when I try and compile main.c I get the following errors:
main.c error: conflicting types for 'getaverage'
my.h error: previous declaration of 'getaverage'
and then the same thing for 'printstuff'
View 3 Replies
View Related
Oct 20, 2010
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].....
View 14 Replies
View Related
Dec 27, 2009
The Avant Window Navigator beta, as taken from the project's Bazaar repository, isn't configuring correctly on my machine and gave me loads of errors previous to this point, so I've had my hands full for a while now. Three packages that AWN needs to compile (gnome-desktop-devel, gnome-vfs-devel and libgnome-devel) are refusing to install, leaving me with this Quote: checking for AWN... configure: error: Package requirements (glib-2.0 >= 2.8.0 gthread-2.0 gobject-2.0 gtk+-2.0 gdk-2.0 >= 2.10 dbus-glib-1 gnome-desktop-2.0 libgnome-2.0 gnome-vfs-module-2.0 gconf-2.0) were not met: No package 'gnome-desktop-2.0' found No package 'libgnome-2.0' found No package 'gnome-vfs-module-2.0' found.
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables AWN_CFLAGS and AWN_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. and this is why they won't install Quote:hal = 0.5.13-9.fc12 is needed by package hal-devel-0.5.13-9.fc12.x86_64 (fedora) I need an old version of HAL for the "dependency resolution failed" notices to go away. One which PackageKit says is still on my computer. I would try to downgrade via yum but setenforce 0 fails. What do I need to do to get this whole thing finished?
View 14 Replies
View Related
Apr 29, 2010
I am in verse to compile a new kernel 2.6.34-rc5 on RHEL 6 Beta.I have been following [URL] for the same. how can i select all the options during :
Code:
make menuconfig/make gconf/make xconfig
I just saved it under .config and when I ran : make modules it threw errro saying "modules not included". So i want to select complete options during make xconfig.
View 3 Replies
View Related
May 10, 2010
i go to place it in the Home folder, then i extract it. It creates a new folder. but when i go to try to start the application this error poppes up.error message: program not been able to find a valid license. This may be because the license file is incorrectly installed, your current license has expired, or you do not have a valid license installed. Please check that you have installed the license file in the correct directory.
View 14 Replies
View Related
Nov 28, 2010
I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:
Code:
#========== bar.h
void mytestfunc(void);
#========== bar.c
#include <stdio.h>
[code]...
Googling for this returns talks about "name mangling", but I don't know if this is what it is, and how to change the source/command to solve it.
View 1 Replies
View Related
Dec 28, 2010
I am trying to include a QWebView widget in my application. Every time I try to compile it, I just get these errors:
Code:
$ LANG=en_US make
g++ -c -pipe -O2 -march=i486 -mtune=i686 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -
[code].....
View 1 Replies
View Related
Nov 27, 2010
I am trying to use Skype beta on my acer aspire one with ubuntu 10.10. The video runs brilliantly and i can also here my wife from the other end but she cannot hear me. Apparently something is fishy with my mic input. I tried alsamixer and everything is in unmute. My alsa version is 1.0.23. The only think she hears is a loud hissing noise which is normally my bat voice but she doesnt need to know that. I can record my voice in the sound recorder but nothing comes out in Skype!
View 6 Replies
View Related
Apr 4, 2010
So here's the schedule for 10.04:
April 8th, 2010 - Beta 2 release;
April 22nd, 2010 - Release Candidate;
April 29th, 2010 - Final release of Ubuntu 10.04 LTS.
If I have 10.04 beta 1, could I just continue to update and not have to burn another disk to install? Or do I have to burn the beta 2 and reinstall if I want it?
View 9 Replies
View Related
Apr 8, 2010
My update manager still says "updated 3 days ago" and no updates have come through today. Does anyone know if NBR has been automatically updated TODAY from Beta 1?
View 1 Replies
View Related
Jul 26, 2010
Whats the practical diffrens between these declarations in c?
char *a_str = "hello";
char a_str[] = "hello";
View 4 Replies
View Related
Feb 4, 2010
We have a file that declares many environmental variables. Out of which I have doubt on few. These variables are declared in UNIX environment. We are planing to migrate them along with applications to Linux.
Code:
export MAILSERVER="%new@hub"
MAIL_USERS="vinay.new"{MAILSERVER}",vijay.new"{MAILSERVER}
Does the above declarations work in Linux ?
The above declarations expands to
Code:
mail vinay.new%new@hub,vijay.new%new@hub
which looks little wierd.
[Code]...
View 4 Replies
View Related
Nov 11, 2010
problem in installin ns-2.28 on fedora 12 with gcc-4.4.4
[Code]....
View 7 Replies
View Related
Nov 25, 2010
I made 2 files which are different from the program above one is temp1.h and another is temp2.c to understand how extern is used. So here is temp1.h
Code:
#include<stdlib.h>
typedef struct node * bond;
extern int jk;
and temp2.c is
Code:
#include<stdio.h>
#include<temp1.h>
struct node {
int data;
[code]...
I had declared jk in temp1.h as an extern int so why can I not initialize it in temp2.c?
View 5 Replies
View Related
Mar 19, 2010
I am trying to enable DHCP so that it will give out IP's to some XP boxes when they boot. I have had success doing it dynamically, but not statically using the host declaration.
host xpTest {
hardware ethernet 00:50:56:2A:3B:00;
fixed-address 192.168.100.2;
}
My question is, what should the subnet declaration be if I only want to hand out static IP's like this? Also, the host is the same name that is specified in /etc/hosts correct?
View 3 Replies
View Related
Jun 3, 2009
I can't remember what it's called, but this feature of VC++ basically catalogs all the functions of a project, lets you right click on a function and go directly to it's declaration or definition, do not pass go, do not collect 200 dollars. it also gives you an info bubble of the variable types as you're typing a function's name.
this is a very convenient feature, and I'd like to use it with KDevelop, or really any full C++ IDE for linux. does such a thing exist?
View 1 Replies
View Related
Jul 7, 2010
I am trying to install this vpn thing for school (I need to access some of my info). I seem to get to the installation part somehow but I keep getting this message
Making module
make -C /lib/modules/2.6.31-17-generic/build SUBDIRS=/home/mblack3/Desktop/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic'
CC [M] /home/mblack3/Desktop/vpnclient/linuxcniapi.o
/home/mblack3/Desktop/vpnclient/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory .....
View 1 Replies
View Related
Jan 18, 2011
Why do I still get mutiple definition of "_my_variable" error even after I used the #ifndef preprocessor in my hpp file?
This is my scenario
I have:
1. A.cpp (including X.hpp)
2. B.cpp (including X.hpp)
3. X.hpp
[Code]...
View 4 Replies
View Related
Apr 1, 2011
I had a server that I use for Radius DNS and Trying to put DHCP on it I have My pool in it seems right. I have 2 adresses aliased one being a helper IP that the router will send the request to. When I try to start the dhcp server I get the following.
Mar 31 14:33:11 rad2 dhcpd: No subnet declaration for eth0 (76.164.173.2).
Mar 31 14:33:11 rad2 dhcpd: ** Ignoring requests on eth0. If this is not what
Mar 31 14:33:11 rad2 dhcpd: you want, please write a subnet declaration
Mar 31 14:33:11 rad2 dhcpd: in your dhcpd.conf file for the network segment
Mar 31 14:33:11 rad2 dhcpd: to which interface eth0 is attached. **
[Code]...
View 1 Replies
View Related
Jan 8, 2010
I am running Fedora 12 with clean install. last updated 1/8/10 AM.Trying to install chkrootkit I get the following when running "make sense":
gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
chkwtmp.c: In function �main�:
chkwtmp.c:95: warning: incompatible implicit declaration of built-in function �exit�
[code]....
View 4 Replies
View Related
Feb 11, 2009
I have the plugin installed ok and have pasted in a C source file that I know works and am getting the following errors, I think because the linker options need to be set in some way. I cannot copy the errors but they all complain of implicit declaration of functions like this: -
warning: implicit declaration of function strlen
But I have the headers included, is this a linker problem? Here is the code -
#include <stdio.h>
#include <math.h>
int main(){
[code]...
View 2 Replies
View Related
Apr 27, 2010
I have problem in ubuntu server 9.10 OpenLdap have error Error
E_STRICT: Declaration of AJAXTree::draw_dn() should be compatible with that of PLMTree::draw_dn()
View 1 Replies
View Related
Dec 25, 2010
Cannot compile? warning: incompatible implicit declaration of built-in function "printf" I have build-essential.
View 5 Replies
View Related
Jul 16, 2010
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.
View 2 Replies
View Related
Jun 4, 2010
I used setfacl to set permissions as follows:
As you can see all settings lead to permissions 777 but that's not what happens. What happens if I say, touch a file, I get: 666 as this shows:
Same for files that are not obviously scripts such as just a.txt.
My umask is 0022.
Does anyone know why this is? Is it changeable for specific directories?
This is a special world viewed directory required by a piece of software... in other words, no, I am not in a habit of setting file permissions to 777 so please no comments about you shouldn't be using such permissions.
Truthfully, I can probably get away with permissions 666 and will if I can but right now I just want to know why it's happening this way and how to control it.
View 4 Replies
View Related
Mar 24, 2010
I'm trying to test whether some software that I am using will behave as expected when DST change over occurs. I'm specifically testing it for the GB timezone when it enters British Summer Time (BST) and then reverts to GMT. From the information I have, BST starts: Sunday 28 March 01:00 GMT (02:00 BST)and ends: Sunday 31 October 02:00 BST (01:00 GMT )To do this test I wrote a shell script that sets the date, runs the program, checks some logs and then reverts the time.
Entering BST was fairly straight forward as all I had to do was the following: export TZ=GB
date 032800582010This set the date to be 28th March and the time to be 00:58 in the GB (GMT) timezone. As expected, the date then rolled forward to 02:00 BST. However, when I tried to do the same for coming out of BST into GMT, the time did not work out as expected. export TZ=GB
date 103101582010Setting the time as above put the time straight into GMT and not BST even though it was two minutes before the time should have rolled-over.
However if I put the following: export TZ=GB
date 103100582010the date was reported as BST!
How can I setup the time so that I don't have to wait for hour before BST ends?
View 2 Replies
View Related
Apr 4, 2011
I have this simple awk program but it not prints var_cab whe^E or ^S or ^M after he finds the second ^C
/^C/ { var_cab = substr($0,1,28); ent = 0 ; print "estoy en cabecera" var_cab;}
/^E/ { if ( ent ==0 ) var_fech = substr($0,4,8) ; ent ++;
print var_cab var_fech $0; }
/^S/ { print var_cab var_fech $0; }
/^M/ { print var_cab var_fech $0; }
END { print var_cab,ent}
the input file is many lines like this, every new block stats with ^CAB
CABES3000088888880000007EAMB
ENT20090706D060709-888 0028560000000012VALLE CA'ZULIA5501, 5502, 5498 y 5535
SAL201008250000134900000321V1202935-MU
[code]....
View 4 Replies
View Related
Apr 27, 2010
I was wondering why this code only returns me the same value ten times instead of valuate the conta+0.1 value code...
View 6 Replies
View Related
Mar 8, 2011
When i create a backup with yast using the option to manually create it, i select the file name /mnt/Backup/system-full-$(date +%F).tar which results later on in two files, the xml file and the tar file with different names:
for example
/mnt/Backup/system-full-2011-03-08.tar, /mnt/Backup/system-full-$(date +%F).xml
this is not acceptable. both files should have the same suffix. Is this the expected behavior or should i report a bug?
View 6 Replies
View Related