compiler-errors

[C] - Invalid lvalue in assignment error when trying to make a pointer NULL

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...

Building using CMake-GUI

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...

Errors building GreenSQL 1.2.2 on Mac OS X 10.5.8 Leopard Server

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...

Can anybody tell me what’s wrong with this code?

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...

How do I compile a Java application that uses Apache Commons IO at the command line

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. ...

c compilation error

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...

Three20 linker error

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...

What does this error mean: `somefile.c:200: error: the frame size of 1032 bytes is larger than 1024 bytes`?

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...

"Could not deduce template argument" error when using Winsock bind() call with Boost

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...

Problem compiling c++ in CodeGear

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<<' ...

C++ Compile problem when using Windows - CodeGear

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...

Why a variable is seen in the loop and is not seen outside the loop?

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...

Don't understand why I am getting this - 'Error: Value storage corrupted: negative chunk size'

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...

gcc error: Can't create precompiled header

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...

Delphi 2010 - Why can't I declare an abstract method with a generic type parameter?

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...

What does "error: invalid function declaration" mean?

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( ) { } ...

How do you set up your JScript (NOT JScript.NET) development environment?

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...

compiling boost based application using cron

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...

Variable reference in a Groovy GString

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? ...

Trying to write a std::iterator : Compilation error

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...