An error that is generated during the compilation phase, often due to problems with invalid syntax and/or types. Compare to [runtime-error].
0
votes
0answers
26 views
GTK+ gcc: error: unrecognized command line option ‘-framework’
I'm coding an interface with GTK+ for chat using XMPP protocol.
My code worked fine when I compiled it like :
gcc login_gtk.c `pkg-config --cflags --libs gtk+-3.0`
But since I add my file to my ...
0
votes
1answer
26 views
Error: Disallowed system call: SYS_socketcall in C
I have a function which receives 8-byte data on UART and I am using one of the data byte in a way that I read that data byte and call a function that modulates the volume of the MP3 codec that I am ...
-1
votes
0answers
10 views
compile errors for vector class
Help; this is the question i meant to ask the other day. i am writing a cpp based on a header file and I keep getting compile errors. Any ideas? The program i wrote is the top.cpp file. Also, any ...
0
votes
1answer
44 views
C++ enum problems and possible circular dependency in g++
At first I am apologize for a slightly longer code... There are 3 classes A,B,C
A.h
#ifndef A_H
#define A_H
template <typename T>
class C;
class A
{
public:
template <typename T>
...
-6
votes
0answers
59 views
I'm trying to write an Error function [closed]
This function works:
try
{
throw new Exception("this is a test");
}
catch(Exception ex)
{ keeper.ShowError(ex, "someFuncName")
public ...
0
votes
1answer
9 views
error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file:
I'm using libevent for a program, I compile my program on two computers A and B, on A the execution is successful, but on B I got the following errors:
error while loading shared libraries: ...
1
vote
1answer
31 views
Mixed Groovy + Java project causes string syntax clashes
I have a project with Java and Groovy files, wanting to compile both into .class.
My Groovy classes use Java classes. One of Java classes contains annotation
@ConfigPartDescriptor(
name = "Mail ...
1
vote
1answer
13 views
Trying to use Pyglet - what does this error mean?
I am running Mac OS X Mountain Lion, with Python 2.7. I did a source install of Pyglet that seemed to go without errors, but any time I try to run a program I get a longish error that I don't ...
0
votes
1answer
43 views
No class method for selector … even though Xcode recognizes the method
I have 3 files: main.m, CGOAuth.h, CGOAuth.m (taken from https://github.com/guicocoa/cocoa-oauth)
In main.m I call (in the main method):
[GCOAuth URLRequestForPath:@"websites"
HTTPMethod:@"GET" ...
0
votes
2answers
36 views
Custom equation solver error
I am having some difficulties getting my custom equation evaluator to work. I pass it a string read from a text file (no spaces except between string words) as equation as well as passing it a map of ...
4
votes
2answers
65 views
Strange compilation error with inner classes
The following code compiles as expected:
class A {
class B {}
class C extends B {}
}
But, if we have class B extend class A, we receive a compilation error:
class A {
class B extends A ...
0
votes
1answer
55 views
Undefined reference in C++ simple project
I'm trying to compile not mine project. I get this error:
[sophie@laptop minit]$ g++ -o minit minit.cpp
/tmp/ccxr5oWl.o: In function `main':
minit.cpp:(.text+0x4e6): undefined reference to ...
0
votes
1answer
31 views
C++ Template Class Compilation Error: expected init-declarator before '<' token
i'm studing templates in c++ and according to this tutorial: http://www.cprogramming.com/tutorial/templates.html
i made the class CalcTempl.h
#ifndef CALC_TEMPL_H
#define CALC_TEMPL_H
template ...
0
votes
0answers
22 views
Porting contiki on MSP430 using IAR
I am using a MSP-EXP430F5438 board and was trying to port contiki on it using the source code(contiki 2.6) through IAR.
I am getting the following errors-
Error[Pe020]: identifier ...
26
votes
8answers
1k views
Operator '??' cannot be applied to operands of type 'T' and 'T'
I have the following generic method, but VS gives me a compile error on that. (Operator '??' cannot be applied to operands of type 'T' and 'T')
public static T Method<T>(T model) where T : ...