Importing C libraries into eclipse through plugins - eclipse

I have build up a C library using my C source code and I have the lib file ready.
Now I want to import this lib file to my eclipse through eclipse plugin.
I want to develop a eclipse plugin which includes these lib files such that I can use my old source codes over here in eclipse just like android plugin for app developers which contains android source code.
I'm not sure how to do this.

Eclipse it's just an IDE, C and C++ support for development purposes are provided by other packages or plugins if you will, the most popular one is CDT.
You can install cdt by simply using the Help menu in your Eclipse.
But in my experience Eclipse is probably one of the worst IDE for development, the C and C++ situation is even worst.

Related

can eclipse C/C++ IDE be used for java too?

I have downloaded .tar.gz install file for C/C++ eclipse IDE.
Can it also be used for java or do I need additional ?
Yes it is, you should install the right plugin - JDT (look at Help->Install new Software)
Base on wiki link:
In computer programming, Eclipse is an integrated development
environment (IDE). It contains a base workspace and an extensible
plug-in system for customizing the environment.
That means Eclipse is just a platform, and you can install any plugins for eclipse. On Eclipse site, you see some packages such as Eclipse CDT Eclipse JDT ... Because they just want you to have a convenient environment for working: just download and run. You can download any versions, and install enough other plugins and they will works well. Here is some tutorials: official link and another nice link
But my recommendation is:
you don't know how "enough" is (as newbie). So the result will be hard because you don't choose enough packages for supporting your languages. And Eclipse Foundation has made it for you.
You shouldn't use many languages in same Eclipse distribution (although you can switch to other workspace easily). Many languages mean many installed packages, and this will slow down your eclipse so much because eclipse must loads more plugins into memory, loads more projects ... This is my experience. So, each language, each eclipse distribution, each workspace. That's a trick.
And answering directly to your question:YES. You can use that version for programming java, but will need to install JDT (Java Development Toolkit) plugin.
Hope this help :)

eclipse doesn't detect errors on c file

I'm writing a C file and Eclipse Juno doesn't detect errors in my code. I tested it by intentionally make an error code. When I'm writing Java file, it detects Java errors.
What can I do?
It looks like you downloaded the wrong version of eclipse.
Eclipse comes bundled with a lot of Java develoment tools, but C-ones are not included.
Easiest way is to download the bundled version for cc/c++ development
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/lunar
You could also download the C Developer Tools as a eclipse plugin
http://www.eclipse.org/cdt/downloads.php
Edit In Eclipse, press Help > Install new software ... > Add ...
Add at location: : http://download.eclipse.org/tools/cdt/releases/juno
Press OK.
Select the features, and thenpress next and so on

Eclipse Luna without built-in plugins

Eclispse Luna has been just released. I wanted to grab it from the download site. But here comes my problem. Even the Standard and Java Developer versions have features built-in which are not needed for me and just slows down the IDE. For example i do not use Mylin or Plug-in development. These things cannot be deleted from the installation... Is there an Eclipse Luna release which only contains the basic package?
Look at the Eclipse Project downloads
The Eclipse Platform is the smallest (but does not even have Java development).
The Eclipse SDK has Java and Plugin development and the Eclipse source. This is the one I always start from.

Same IDE for both C and Java projects?

I have a Java project and a C project. I would like to use the Eclipse IDE to work on each project. To accomplish this I ended out downloading a version of ecliplse for C and a version for Java. Seems like I should only need 1 ide and then "switch perspectives" when I switch to work on a different project. However, the "Java" perspective is not available in the dropdown when the C version of eclipse is running, and vica-versa.
Do I really need two ides?
Download one IDE. Go to the Eclipse Marketplace and install the other one. It will have both plugins installed for a single Eclipse IDE installation.
No,
you can easily install the CDT features in a Java version of eclipse, or vice-versa, but I would add C++ to Java.
Once the features are installed the C++ projects can be opened and it is indistinguishable from the prepackaged version.
There is no magic there.
Help --> Install New Software --> Select helios repository (with a version indicator)
wait till the package list appears
Open the Programming Languages folder and select the CDT packages.
Typically eclipse complains so;e dependencies are missing, so select those too and it'll install.

Many Eclipse installations, or how to install many development tools on one Eclipse?

HI all,
I have Eclipse installed with PDT (PHP Development tools).
I want to program in Java and C++, do I have to download whole Eclipse JDT and Eclipse CDT again, and have separate installations, or can I install "plugins" to handle Java and C++ ?
Thanks
Yes you can install the plugins into the same Eclipse installation. For Helios you can use the Update manager Help->Install New Software then select the Helios site and select C/C++ in Programming Lagnuages and so on. If there's something else you need you need to get the update URL and add a new site.
You can have one eclipse with all the plugins (and perspective). But that's tedious:
you'll have to find the plugin jars for each of the 'suites' and place it in the plugins dir. Sometimes they might not have an update site url
some plugins cause problems, sometimes mixing certain plugins cause problems - in short, the more plugins, the more likely your environment will crash
The way I'd suggest is to have a separate eclipse installation for each task. I myself have 3, for different sort of java development (one java, one flex, one for specific project with specific plugins)
Eclipse itself is perfectly stable and capable of supporting quite a lot of plugins. However if you are unlucky to need "crappy" plugins, there the problems being.