Programming :: Adding Gtk Libraries To Eclipse Using C
Jan 30, 2010
So I decided to take my first steps into programming with C + gtk. So far I have doneI loaded eclipse and ensured I had the cdt package Created a new C/C++ project called "play" Added a new source file called "Playfullsrc.c" Added the following to paths and symbols (output of the command: pkg-config --cflags gtk+-2.0)
added "/usr/lib/libgtk-x11-2.0.so" to GCC C Linker Libaries (I have cheacked and this file exists) When I build the project I get the error message "cannot find -l/usr/lib/libgtk-x11-2.0.soplayline 0C/C++ Problem" I have been following this tutorial: [URL]
I use OpenSuse 11.3, Eclipse Elios for C++. What do I have to do for using boost? I put #include <boost/regex.hpp>, but it can't find the file. What variable do I have to use?
I have been using Eclipse to program in Java for a long time, and have been using Jigloo for most of my GUI design. Recently I decided to try out the C/C++ plugin. I tried installing it, but it did not work. After many attempts, I finally gave up. However, after uninstalling it I found that Jigloo had stopped working. Any other plugins I try to install now also don't work. I have tried uninstalling and reinstalling plugins, and reinstalling eclipse, but nothing I have done fixes it. Although eclipse says that the software has been installed, nothing shows up in the features list or the plugins list.
Another problem: When I install eclipse from the repositories, it doesn't install a bunch of libraries and eclipse cannot recognize standard java files.
Specifically what libraries do I need to install to support a 32-bit Eclipse-based IDE? the IDE is only available in 32-bit, so i tried installing glibc (32-bit version) but nothing happens. Here's the site were the IDE available is [URL].
I have been writing PHP using Adobe Dreamweaver; I have been looking around for an application that focus more in PHP.I have found:
[URL]
and:
[URL]
I know Zend stands behind PHP and that Eclipse is a popular open source IDE. What is the difference tho?Is the PDT Project only a functionality that could be added to Eclipse IDE? Is Zend for Eclipse a stand alone IDE for PHP? if so, Why the Eclipse in the name? I have downloaded Zend Studio for Eclipse, so far it seems very complete (no that have learned how to use all its features).
The Metrics plug-in supports Java development well at Eclipse.
[URL]
I would like to know if it supports Eclipse CDT, so I can use it with my C++ project. Any thought? If it doesn't support CDT, is there any good static code analysis tools available for Eclipse CDT?
Im doing a project,in which i have to add a script in c++ inorder to merge two or pdf files page by page or based on some headindgs.SO anyone can please suggest me any open source pdf libraries in c++ which provide functions for merging and splitting.
I just started using eclipse. Ie, I followed all the instructions to set up C++ and run a simple hello world program.However, I seem to have hit a snag.When I build the solution I get an error. I realized where there should be a > there is a | instead. Every time I type > the | prints instead and I have no idea how to fix this.
I've spent all day trying to figure how to write an ant build.xml file for eclipse. I must have read 20 sites on the web but some how I just am missing it I continue to get the error
Code: /home/knox/workspace/HW/src/projectBuilder.xml:5: the file attribute is required here is my file at this point after many variations Code: <?xml version="1.0" encoding="UTF-8"?>
[Code]...
It works fine if I leave out the Main-Class line in manifest but then the jar is not executable Dick
An error occured during running a code. I've made run configurations properly and I've chosen GNU Elf parser,Elf parser, Mach-O parser and Cygwin PE parser as a binary parser. Eclipse CDT can not find any error in the code and code runs in terminal properly. Here are the code:
Code: /* * pmutex.c * * Created on: Mar 7, 2010 */ #include <stdio.h>
[Code]...
Eclipse denies to run it.I've made an investigation over the eclipse.org, but I can not find any solution.
I'm trying to compile and run a java application on Ubuntu 10.04. In the run drop down there are no run options in "run as". I have PDE installed but for some reason its still does not work.
I am learning C++ and wish to include some Boost functions in my code. My machine is running Debian Linux with the pre-installed boost binarys.I have a couple of questions:How do I include the library in my C++ code as there are no cpp or h files only binary files (eg /usr/lib/libboost_regex-d.so and /usr/lib/libboost_regex-d.a)How do I comile the code. I am using DialogBlocks for creating forms using wxwidgets. The editor also compiles the code using the gcc compiler. Do I have to give an instruction to the compiler saying which file is requried and where to find it? If so, any ideas how this is done?
I'm new to Linux and I got some Problems with Eclipse. In my Code im trying to include <sys/stat.h> and <sys/types.h>, but Eclipse can't resolve the inclusion. I added the following Paths under Projcet > Properties > Settings > Includes :
I googled much, before i opened this thread. There was a post, which said i should look for the paths with this comand: echo "#include <sys/types.h>" | gcc -E -x c - | grep types
The resolution was this Path: /usr/include/x86_64-linux-gnu/sys which i included, like you can see above.
Some Background Informations: The code, which doesn't work is from a team mate of my group. We have to write a Compiler, and he wrote the buffer. And there he is using functions like fread, fopen and fclose. These funcitons are marked as errors, i think it's because the Headerfiles aren't found.
I am trying to debug a src code that I download from the Internet.It is built with libtool. I am able to debug it with gdb, but i cannot debug it with eclipse.
It builds fine when I build from the command line ( make -f sample.mk).
However, it does not build when building from eclipse (which essentially calling the same makefile). The make output shows exactly the same as what I got from the command line build, except the last line showing
I have set up Eclipse + CDT on an Arch 2010.05 install. I set up an eclipse project and added SDL as a dependency (see below):
Project -> Properties * -> GCC C++ Compiler -> Preprocessor -> main=SDL_main * -> GCC C++ Linker -> Libraries -> SDLmain SDL (in that order top to bottom) * -> GCC C++ Linker -> Libraries -> Library Search Path -> /usr/lib/ (I verified that libSDL.a and libSDLmain.a are there)
This is the code I'm compiling. It's designed to just be a hello world style SDL app to see that everything is working.
I am stuck with a problem to link static libraries with gcc. There is no problem with source files since I am able to compile in a machine where the static library is installed. I am compiling with the following: Code: :~/Emotion/pjproject-1.0.3/third_party 157% gcc -Wall -I/portaudio/include -o rec patest_record.c -L./lib -lportaudio-x86_64-unknown-linux-gnu
I have 2 questions... I couldn't find answers by Googling (more precisely, by Blackling) and in GCC documents, so I'm asking here.
1. There are 2 flags for position independent code, -fpic and -fPIC. All the examples I read use -fPIC... so when is -fpic useful and what is the difference?
2. Some tutorials use "g++ -shared" while others use "ld" for the creation of the shared library. Why? Does it matter which method I use? Is there a difference? Why does nobody mention both options?
I've been trying for days now to build my first FastCGI application using gcc.
This is the output:
Code:
I believe I wouldn't have to refer to the lib path, but I added the -L flag to be sure.
The directory /usr/lib includes (among others) these files:
Code:
I have tried to follow these instructions. The files in the tar.gz archive provided by FastCGI.com no longer corresponds to the instructions there, but I was still able to run the ./configure and make commands so I believe FastCGI is installed.
But why can not the library be properly linked to? Really hope you can help me out on this one!
This post isn't really asking for a tutorial, but rather asking for some ideas. I've come up with a few ideas, but they seem cumbersome and unnecessary, so I was wondering if someone with more experience than me could out. Also, my explanations suck, but I'll try to do my best. So say I have an executable called X. At some point during its execution, X loads and uses (using dlopen and dlsym) a library called Y. In Y, there a bunch of functions that call the function called, for example, void *special_malloc (size_t). These functions come from another linked library (linked during compilation) called Z. Problem is, special_malloc contains some static variables within its scope, and when those variables are reset midway through a program, an invalid free occurs (special_malloc uses garbage collection). Now, what I want to happen is that whenever lib Z calls special_malloc, it instead calls the special_malloc defined in the executable X, so that these static variables are retained. Keep in mind that I have control of the Z library, meaning I can edit the source to fit my needs.
I've installed the new Eclipse Luna on my Debian Wheezy (with XFCE). When I try to run, the Eclipse crashes just after the splash screen runs. Well, I've tried to run on other JVM (1.7 update 60), but I got the very same problem.
Here's the log: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f17eb06873f, pid=19045, tid=139741378922240 # # JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
[Code] ....
Is this a problem with the Eclipse or even its compatibility with my XFCE?