How to integrate DynamicC compiler(Rabbit Microcontroller/C ) with the Eclipse IDE - c

I would like to integrate the Dynamic C compiler which is compiler for the RABBIT microcontroller into the Eclipse IDE. I really like eclipse environment and its features.
Is there any method I can use to integrate such external compiler into the Eclipse Environment. Any detailed writeup of howto would be very helpful.

I don't know that compiler, but Eclipse can be configured to use various compilers.
You should create a C project, right-click it and select "Properties". Then take a look at C/C++ Build -> Settings and C/C++ Build -> Tool Chain Editor.
If your compiler is properly installed (i.e. you can build things with it on the command line or through another tool), then you should be able to get the right things set in the "C/C++ Build" options.
Here's the eclipse documentation on managing those settings: Eclipse C/C++ Build

Related

Cannot find -lpthread?

I am new to C programming.
I was trying to use the pthread API to write some concurrent program.
I downloaded eclipse IDE for C/C++ Developers, MinGW. I have put all the library, header files into the corresponding location of the MinGW file.
When I tried to build the project, there is always an error "cannot find -lpthread", what happened?
I have added the "-pthread" to the GCC compiler.
I have searched a lot in Google but seems no one have similar problem as me.
The answer to this question by someone who is also missing MinGW pthread library should help you out! Essentially the issue is that the MinGW installer script might not download the lpthread library upon installation. Quoted from link:
Just run and open MinGW Installation Manager, which should be pre-installed with MinGW, select "All Packages" on the left panel, and on the right panel, search for "mingw32-pthreads-w32" packages and install them.
I downloaded eclipse IDE for C/C++ Developers, MinGW.
MingGW uses the Windows API. The Windows API does not provide PThreads.
You need to install PThreads for Win32 to have PThreads available under Windows, and with this available under MinGW.
Eclipse is not configured to put the -pthread argument in the gcc compilation. To solve this, go to the Menu:
view sourceprint?
1.Project -> Properties
From the bar on the left:
view sourceprint?
1.c/c++ build -> GCC C Compiler -> Miscellaneous
Add the “-pthread” argument into the beginning of the “Other Flags” Also go to:
view sourceprint?
1.c/c++ build -> Settings -> GCC C Linker -> Libraries
And include the “pthread”library into the other libraries. Click Apply and rebuild the project. Pthreads must work now.
See the question on mingw.org. I ended up with adding 'C:/cygwin/lib' to the settings for the "Library search path (-L)" at properties >> c/c++ build >> settings >> MinGW C Linker >> Libraries.

C/C++ Run/Debug configuration in Eclipse

I am new to C/C++ development in Eclipse and trying to configure Eclipse. I'm working in a Linux environment with GNU GCC and my toolchain is detected by Eclipse. As given in the Eclipse documentation 1, I opened Run>>Run configurations. But the C/C++ Local tab is not there.
This is all I get.
But when I build a sample helloworld program, it's being built correctly.
Any idea why this happens?
1 http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_run_com.htm
I faced same issue as you. I was able to create and build one c/c++ project, but I couldn't run/debug it. Actually, I installed wrong CDT (CDT Visual C++ Support). Next I installed correct CDT (c/c++ development tools) and after one eclipse restart I had c/c++ application inside of Run Configuration.

What does Eclipse CDT come with?

This is what i currently have installed on my home computer:
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2
Now, that was a pain to setup because you needed to use Cygwin to install a bunch of stuff in order for Eclipse to compile and run a C project. I found this the other day:
http://www.eclipse.org/cdt/
Does Eclipse CDT come with everything it needs to compile and run a C program or does it still depend on external files? Does it come with a standard library?
You do not have to use Cygwin and you can use alternatives such as mingw (it is simpler for most people to install). Checkout this tutorial for detailed description how to setup on Windows:
http://www.banym.de/eclipse/install-eclipse-cdt-on-windows-7
Compiler is responsible for standard library and in the case mentioned above it is mingw.
If you are on other hand interested about MAC OS installation checkout:
http://forge.mysql.com/wiki/Eclipse/CDT_on_Linux_and_Mac_OS_X
http://max.berger.name/howto/cdt/cdt.jsp

Compling C code in Netbeans IDE 6.9.1

Can anyone give me step by step tutorial on how to use netbeans to code and compile C code?
Also i have dev cpp but the formating is sick.
GCC is what i use.
Thanks much
netbeans tutorial: http://cnd.netbeans.org/cnd-tutorial.html
In Ubuntu, I do the following:
- Create a new C/C++ project
- Import the sources
- you already have makefiles (or cmake), netbeans you can configure that in the advanced screen.
- You can turn of automatic builds in the same advanced screen
- and build using the normal build command.

How to run a Simple C Program in Eclipse IDE

I've downloaded Eclipse C/C++ IDE . I need to run a simple c program in this(To print welcome).
While trying to run the program its popping up an error message like "Launch failed: Binary not found" .
Need i install any compiler package. ?
Please help me to do this.
Yes, you have to install a compiler, Eclipse is only an IDE. You can get MinGW here.
http://www.eclipse.org/cdt/
Look at the above link,you will get more idea,on how to do development using C/C++ using eclipse.
You can make use of the documentation which comes along with the IDE.
Just on the start up window in Eclipse click Tutorials and then click on c/c++ development link and then read Before you Begin part.
The program you write must be converted into respective binary which is to be run on that particular architecture.This process is carried out by the compiler as a result compiler is required for eclipse IDE to compile and link the code .
Various compilers are available such as Microsoft Visual C++ MinGW GCC or Cygwin GCC in the form of chaintools in eclipse so as to compile the code.
Eclipse is an IDE.It will help you write applications in c/++,but it will not compile your program as Eclipse does not comes with a compiler pre-configured.
You need to install a compiler to run your application.
Eclipse is capable to use many c/c++ compilers,some are:
1.Cygwin
2.MingW
3.Gross
4.Microsoft Visual C++
I would advise to install mingW OR Cygwin.
If you need more help on running a c/c++ application in Eclipse
visit http://www.ibm.com/developerworks/opensource/library/os-ecc/?S_TACT=105AGX44&S_CMP=ART

Resources