compile

Undefined symbol ‘IA__gdk_drag_context_get_device’

I get those two errors when trying to compile GTK+: ../../gdk/gdkaliasdef.c:1142: error: ‘gdk_drag_context_get_device’ aliased to undefined symbol ‘IA__gdk_drag_context_get_device’ ../../gdk/gdkaliasdef.c:1145: error: ‘gdk_drag_context_set_device’ aliased to undefined symbol ‘IA__gdk_drag_context_set_device’ those lines are: #undef g...

Compiling and executing through commandLine shows NoClassDefFoundError when trying to find Java package

I have a client/server program that attempts to send and receive an object. There are three packages: server, client and shared shared contains only the Message class I put Message.java from shared package into the same folder as calcclient package source files and calcserver package source files. I compile using the line: javac -cla...

How do I run D3D9 programs (that have already been compiled) on a machine without the SDK?

I have a simple 3D application programmed in C++ and D3D9 using MSVC++ 2008 Express. Some weeks ago, I had to format my hard disk, so the DirectX SDK is not currently installed. However, I found that the exe file that I found in my "Debug" folder for the project does not run. The error it gives is: "This application has failed to star...

Working on a cross platform library...

What are the best practices on writing a cross platform library in C++? My development environment is Eclipse CDT on Linux, but my library should have the possibility to compile natively on Windows either (from Visual C++ for example). Thanks. ...

How to check value of defined symbols (Eclipse->Paths & Symbols) in a makefile?

We have a project that used to be an Eclipse-managed CDT project. However, I am trying to change it to a standard makefile project. One of them has a couple of symbols defined in Project Properties->C/C++ General->Paths & Symbols->Symbols. The makefiles generated by Eclipse used to automatically get the value when it was managed. Th...

Build GTK with Windows SDK

Hello, how can I compile gtk (itself) with Windows SDK ? ...

Compiling without setting up a project in NetBeans or Visual Studio

Hi, In short: is there a way to compile and run single file in NetBeans or Visual Studio without having to setup and tinker with projects? I'm currently using code::blocks as my IDE. It's fast and very simple: perfect for my needs as a begginner. I wanted to dive a little deeper and try out a more advanced IDE such as NetBeans or Visu...

C++ class in Cocoa

Any ideas why Xcode wont let me define a c++ class in my cocoa project? I am trying to use a C++ class in my cocoa project but I am getting build errors just creating the c++ header file. class SomeClass{ public: int count; }; Expected '=', ',', ';', 'asm' or 'attribute' before 'SomeClass' in ..... If I remove all code from the...

Simple change results in make: Error 1

Had this: rtable.insert ( pair<string,string>(destination,nhop) ); // route insertion return 0; Changed it to this: if (rtable.insert ( pair<string,string>(destination,nhop)) == 0){ return 0; } First one compiles fine. Second one gives me a make error 1. I can go back and forth all day -- I can't see any issues. Any ideas? ...

How to compile these 2 java files correctly?

I'm following the steps here, it's basically : Compile the DataSource and LiveStream classes: javac -d . DataSource.java LiveStream.java Run using JMStudio: java JMStudio screen://0,0,160,120/10 But when I compile them, got lots of errors like javax.media doesn't exist and so on. Here's the directory structure: D:\>dir 2010-06...

Using Linq methods causes missing references to DependencyObject in WindowsBase

I have some c# source that I want to compile using CodeDom within my application (for a plugin) Everything works fine, except if I use a Linq extension function on some of my collections var dict = new Dictionary<KeyType, ValueType>(); .... dict.Any(KV=>KV.Key == "Some Key"); When I try to compile source that has this code, it CodeDo...

maven-compiler-plugin exclude

Hi, I have a following Problem. I would like to exclude some .java files (*/jsfunit/.java) during test-compile phace and on the other side i would like to include them during compile phace (id i start tomact with tomcat:run goal) My pom.xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-...

What does the :compiler command do in Vim?

I recently found that there is a command in Vim called compiler. You can call it with any common compiler (for example, :compiler gcc, :compiler php, etc.), but it doesn't seem to have any immediate effect. I searched on the manpages but didn't find anything useful about what it actually does, nor does the Vim Wiki. Does anyone know wha...

Disable 'Automatic compile' in mobility project in Netbeans IDE ?

hi, the question is quite self explanatory. I need to disable the automatic compilation in mobility project. I came across following post http://stackoverflow.com/questions/1304149/disabling-automatic-build-in-netbeans but it is for Java SE projects only. I don't find the "Save on Compile" option for mobility projects.... any help pl...

Default rules in Make

Is there a mechanism in make to allow for default global implicit rules that are available anywhere, similar to the built-in rules? Make provides some built-inimplicit rules for compiling C/C++/Fortran files, without even requiring a Makefile for simple cases. However, when compiling other languages (e.g. Go programming language files)...

How to see full compile path in Eclipse?

I have looked for an answer for this nearly every where that I can think of, but there doesn't seem to be any way to actually SEE what Eclipse "runs" to compile the projects (as it does need the JDK installed and visible to actually build). I ask because I imported a few jars into my project, and even though I've looked through all the j...

Java command-line problems with .jar libraries.

Hi -- I have a single .java (driver.java) file I'm trying to compile and run from the command-line. It uses the external library called EXT.jar, whose structure is just a folder called EXT with a few dozen classes within it. So I run: javac -cp EXT.jar driver.java This compiles the class just fine. then when I run: java -cp EXT.jar...

pdfLaTeX + memoir class compile error

Hi, I'm in the middle of writing my thesis, and was using KOMA-Script. The document compiles just fine. I stumbled upon the memoir class yesterday, and was thinking of giving it a try, so here I am trying to compile with this class instead of KOMA-Script. First compilation is OK On second compilation, the document would not build (./fo...

Building a specific piece of Android platform?

Hi, I have been trying to build only the "/libcore" directory of the Android platform. When I try mmm libcore I end up with the following output: ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=2.1-update1 TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR=false TARGET_BUILD_TY...

java.io in debian

Hello, i try to compile a java program but in the import section of the code fails: import java.net.*; import java.io.*; import java.util.*; import java.text.*; import java.awt.*; //import java.awt.image.*; import java.awt.event.*; //import java.awt.image.renderable.*; import javax.swing.*; import javax.swing.border.*; //import javax.sw...