I have a pointer of a structure type that I made. On program start it begins as NULL and I then malloc/realloc as I need to add/remove these structures and I was just gonna use my pointer to point at the first structure and move through it like an array.
When I malloc/realloc I always make the size of the "array"/area in memory one larg...
I am trying to build Marble on Windows (XP) and have been extremely unsuccessful.
Following the instructions written here. I am wanting to build it as QT only.
Configuration of the build tree fails. I am using the cmake-gui since I have never tried to compile using cmake it's possible it could be something in there.
I found a similar i...
I'm attempting to build GreenSQL 1.2.2 on Mac OS X 10.5.8 Leopard Server, but I get the following errors (which appear to be an ld error?):
cc -g -Wall -I/usr/local/include/ -I/usr/include/mysql/ -I/usr/local/include/mysql/ -DHAVE_MYSQL_CLIENT -fPIC -c -Wall sql_api.c
cc -g -Wall -I/usr/local/include/ -L/usr/lib64/mysql -L/usr/local/lib...
I am getting the compile time error.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class gfile
{
public static void main(String args[]) {
// create a Pattern
Pattern p = Pattern.compile("<div class="dinner">(.*?)</div>");//some prob with this line
// create a Matcher and use the Matcher.group() method...
Hi all, I made an application in NetBeans and I used the Apache Commons IO jar file. The application works fine in NetBeans, but I want to be able to compile it from the command line. The Apache Commons IO jar is with my *.java files but I get a commpiler error that says package org.apache.commons.io does not exist.
...
These are my errors:
error: static declaration of doct follows non-static declaration
error: previous declaration of doct was here.
And my code is:
int doct(int*); /* <- Second error points here */
private int doct(int *a)
{
static int a=0; /* First error points here */
a++;
*a=a;
return 0;
}
Any suggestio...
I have the following line of code:
if( !self.isLoading && TTIsEmptyString !TTIsEmptyString(_username) )
and it results in the following error:
Undefined symbols:
"_TTIsEmptyString", referenced from:
-[UserModel load:more:] in UserModel.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
I've read, that linker error...
During a make, I'm seeing an error along the lines of:
cc1: warnings being treated as errors
somefile.c:200: error: the frame size of 1032 bytes is larger than 1024 bytes
The line number points to the closing brace of a c function that has a signature like this:
void trace(SomeEnum1 p1, SomeEnum2 p2, char* format, ...) {
char st...
I'm fairly new to C++, and I'm likely in over my head, but that's the way it goes.
I'm working with a fairly large Win32 C++ project that uses Winsock for its network communications. I'm in the process of trying to convert a bunch of its thread management over to boost, but once I added the references to the boost libraries and what-no...
I have written a C++ program for a University assignment. I used Netbeans 6.8 running on my Mac and the code runs smoothly, no warnings, errors or problems/bugs. However when compiling and running on a Windows computer using CodeGear RAD Studio 2009 (C++ Builder) am getting several errors.
[BCC32 Error] main.cpp(51): E2094 'operator<<' ...
This is a follow-up question to this one i made earlier. Btw thanks Neil Butterworth for you help
http://stackoverflow.com/questions/2461977/problem-compiling-c-in-codegear
A quick recap. Im currently developing a C++ program for university, I used Netbeans 6.8 on my personal computer (Mac) and all works perfect. When I try them on my...
I have the following code:
String serviceType;
ServiceBrowser tmpBrowser;
for (String playerName: players) {
serviceType = "_" + playerName + "._tcp";
tmpBrowser = BrowsersGenerator.getBrowser(serviceType);
tmpBrowser.browse();
System.out.println(tmpBrowser.getStatus());
}
Syste...
I'm using intelliJ IDEA version 9.0.1 build #IU 93.94 with JDK 1.6.0_17.
This error comes up at compile time. It only happens sometimes and sometimes when I hit File|Invalidate Caches and restart intelliJ, my project will build successfully.
I have absolutely no idea what to do about this, but it is slowing my progress down quite a bi...
I have some useful typedefs on a header file called utypes.h. I have decided to use make and haven't found a way to compile it since then.
When I execute gcc -Wall -c utypes.h to generate the .o object of utypes I get the following error:
"utypes.h:1 fatal error: can't create precomiled header types.h.gch: Permission Denied (EACESS)
C...
I am trying to do the following in Delphi 2010:
TDataConverter = class abstract
public
function Convert<T>(const AData: T): string; virtual; abstract;
end;
However, I keep getting the following compiler error:
E2533 Virtual, dynamic and message methods cannot have type parameters
I don't quite understand the reason why I can't d...
With GCC 4.1.2, I get the error tmp.cpp:8: error: invalid function declaration for the following code
namespace edit {
class A {
public:
void foo( );
};
}
void edit:A::foo( ) {
}
...
In my environment, if I create a class in JScript syntax:
class test{
}
and then save it to a file named "test.js" and run it with wscript, I get a Microsoft JScript "Syntax error" at line 1.
However, if I simply, say, write a function:
function getInput() {
var wshell = WScript.CreateObject("WScript.Shell");
wshell.Popup...
Hi All,
I am building some boost based application for various embedded targets. I have developed a script which can build my application with different toolchain for several targets. This script works fine when I run it from command line but if it is invoked from cron it always fails to link the object files. My application has depende...
From the book "Groovy and Grails recipes" I'm using the following code snippet:
String HelloLanguage = "def hello(language) {return \"Hello $language\"}"
However, I get a compiler error "You attempted to reference a variable in the binding or an instance variable from a static context." because language can't be bound. What is wrong?
...
I am trying to write an std::iterator for the CArray<Type,ArgType> MFC class. This is what I have done till now:
template <class Type, class ArgType>
class CArrayIterator : public std::iterator<std::random_access_iterator_tag, ArgType>
{
public:
CArrayIterator(CArray<Type,ArgType>& array_in, int index_in = 0)
: m_pArray(&arr...