Pages: [1] 2   Go Down
Author Topic: Run C++ Program In Arduino IDE  (Read 2830 times)
0 Members and 1 Guest are viewing this topic.
INDIA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have windows 7 OS. i can't run my C++ program using Turbo C++ 3.0 IDE . Is it possible to compile and run my C and C++ program in Arduino IDE software. If possible please help me.
 Thank you. smiley-slim
Logged

Reduce Global Warming & Make the world Smiling.. smiley

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi RAMAKANTA,

Welcome!

For new folks such as yourself, you should start with the Arduino IDE software. You can download a Windows version from here: http://arduino.cc/en/Main/Software

Enjoy!

Pat.
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

INDIA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible Run C++ Program in Arduino 1.0.3 ?? now i am downloading..!!

Thanks.
Logged

Reduce Global Warming & Make the world Smiling.. smiley

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the Arduino IDE compiles C++ code.  In fact a lot of the libraries use C++ classes.
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you know turbo C 3 was a borland language for MSDOS released in 1991 right?

its not going to do squat inside the arduino IDE, wrong compiler, wrong system, wrong architecture
Logged


Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The arduino IDE can not generate anything you run on your computer.
Logged

Offline Offline
Newbie
*
Karma: 2
Posts: 18
EE hobbyist
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible Run C++ Program in Arduino 1.0.3 ?? now i am downloading..!!

Thanks.

RAMAKANTA,

"The Arduino environment is based on Atmel Atmega microcontrollers. The AVR language is a "C" environment for programming Atmel chips. Much of the Arduino language is written with AVR constants and functions and there are many things that are still not easy to accomplish with the Arduino language without using some AVR code."
http://playground.arduino.cc/Main/AVR

There is also another forum post at http://arduino.cc/forum/index.php/topic,2249.0.html that answers your question directly. This FAQ about using C++ on the AVR was referenced in that post: http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_cplusplus
Logged

INDIA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Arduino environment is based on Atmel Atmega microcontrollers. The AVR language is a "C" environment for programming Atmel chips. Much of the Arduino language is written with AVR constants and functions and there are many things that are still not easy to accomplish with the Arduino language without using some AVR code."
http://playground.arduino.cc/Main/AVR

There is also another forum post at http://arduino.cc/forum/index.php/topic,2249.0.html that answers your question directly. This FAQ about using C++ on the AVR was referenced in that post: http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_cplusplus

Hi mbduino  , i am not talking only  about micro-controller or microprocessor program .  i am talking about also general program. like Phonebook for PC Using Memory Access Functions . i have attached the C++ program . is it possible ?? suppose any one learn first time C and C++ program, can that program run in Arduino IDE ???

* phonebook.C (1.7 KB - downloaded 17 times.)
Logged

Reduce Global Warming & Make the world Smiling.. smiley

Norfolk UK
Offline Offline
Edison Member
*
Karma: 66
Posts: 2482
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe you should get Visual C++ Express from Microsoft. http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express it's free and should be able to create windows based executables.
Logged

There is no such thing as a stupid question but there are a lot of inquisitive idiots.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25874
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
is it possible ?? suppose any one learn first time C and C++ program, can that program run in Arduino IDE ???
Nothing "runs" in the Arduino IDE (except, maybe, the AVR C++ compiler).
Your PC doesn't have an AVR processor, so anything you compile in the Arduino IDE cannot run on your PC.

Is there something wrong with your question mark key?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Indiana, US
Offline Offline
Full Member
***
Karma: 12
Posts: 204
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have windows 7 OS. i can't run my C++ program using Turbo C++ 3.0 IDE . Is it possible to compile and run my C and C++ program in Arduino IDE software. If possible please help me.
 Thank you. smiley-slim

All- RAMAKANTA is a very new user, and is not familiar with the Arduino or its IDE.  As such, he is asking questions that might not make sense to everyone else on this forum.  We need to give him some slack and find out what he is really trying to ask.

RAMAKANTA- use the Arduino IDE to build your sketches to download to your Arduino.  There are a lot of links on this site to read to learn what the IDE can do, including how to write software.

If you would like to write software to run on your PC that can talk to your Arduino using a serial connection, I suggest that you download a copy of Processing (processing.org).  I believe you will be able to copy/paste many of your existing programs into these environments to reuse some of your existing code.

Only when you are proficient with these two, you should try some of the more complex environments.  There will be a lot of help here when you get that far, should you have any questions.

In the meantime... IDE=Arduino, Processing=PC.

Have Fun!

Pat.
Logged

There are 10 types of people in the world, those that understand binary, and those that don't.

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
We need to give him some slack and find out what he is really trying to ask.

I thought it was pretty clear what he was asking, I was surprised at the instant "yea no problem" answers from people who clearly didn't
Logged


INDIA
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Means , I required an IDE Like Turbo C++ 3.0 , which i can run my .C & C++ program and generate .exe file. is there any software (IDE ) Like Turbo C++ 3.0  . smiley-cry
Thank you.
HAPPY NEW YEAR to ALL
Logged

Reduce Global Warming & Make the world Smiling.. smiley

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Think the GCC compiler which is used in the Arduino IDE can also be downloaded for Windows - http://gcc.gnu.org/install/binaries.html -
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Delfzijl
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try this website for a C/C++ (IDE and compiler)

http://orwelldevcpp.blogspot.nl/

Henk
Logged

Pages: [1] 2   Go Up
Jump to: