Objective C on Windows [duplicate] - c++

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Objective C for Windows
I know there are several posts about this but I don't feel that any of them fit my scenario. I have been asked to learn Objective-C and write a report over its differences from C/C++ along with develop a presentation for my Programming Languages class. I would like to write a simple program using Objective-C but I do not have access to a Mac. I have a Windows machine and I am looking for an IDE that is not too complex (no need for source control or anything like that) but something that has a compiler (debugger is a plus). Any recommendations on what IDE to use for this? Thanks ahead of time.

Try GnuStep which has an IDE called ProjectCenter. It is aimed at reproducing the NextStep/OpenStep programming experience on multiple platforms, including Windows.

Take a look at MinGW. It contains all the compilers from the GNU Compiler Collection, which includes also the objective-c compiler.

Take at look at GNUstep.
I personally never tested it, but it's supposed to suport AppKit, which is the UI Framework for Mac OS X.

Related

C++ and Lua from USB [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
So about 2 weeks ago, I started learning C++ and Lua, and I would like to be able to:
compile C++ code (it would be a nice bonus if i could have a C compiler as well, as that's next on my list of languages to learn)
interpret (is that correct terminology?) Lua, and
do all of this from my usb drive WITHOUT downloading anything from the internet or changing the path variable. (I will mostly be working on school computers.)
As a side note, I have fallen in love with Sublime Text 2 (the portable version of which is already on my usb drive). If it's ABSOLUTELY necessary, I'll make do without it, but I would prefer being able to use it wherever I go.
Please be patient with me, as i have mentioned before, I just started learning how to program, and I have little to no knowledge on how things work. I have seen similar questions, but they never seem to help me much due to my limited knowledge, so PLEASE don't mercilessly close my question like others I have seen on this site.
Thank you in advance!
I recently added a page on Lua WIKI (great source of info) that may help you. It is a tutorial for complete newbies on how to build Lua from the sources using only free and "portable" (in the sense of "can be put on usb drives") tools. It is meant for Windows OS users. Do not forget to check the official getting started page and the main Lua site as well!
The fact that you cannot download anything is quite restrictive (how could you get a free compiler then?). Anyway as greatwolf mentioned TDM-GCC is a great C/C++ compiler for 32 bit x86 PCs. It is also patched to be perfectly "portable": I usually use it from a portable USB HD. The tutorial I mentioned shows you how to download it and "install it".
Note that although your sysadmin at school may have blocked your ability to change the path variable globally, you can set it for individual processes ("launched programs") using simple batch files (aka Windows command shell scripts).
Create a file named "myshell.cmd" with this content:
#set path=%path%;c:\the\path\to\my\app&cmd /K
the part c:\the\path\to\my\app must be the actual path of the directory (folder) where the application executable is placed. When you double-click on myshell.cmd a black box will open (assuming your sysadmin hasn't blocked this feature) where you can invoke the app executables.
For example, if you "installed" the TDM_GCC compiler in c:\myprogs\GCC inside that dir you will find a subdir named bin. That subdir must be put in the path, so your myshell.cmd file will be like this:
#set path=%path%;c:\myprogs\GCC\bin&cmd /K
Then in the "black box" I mentioned you can invoke the compiler typing:
gcc --help
As for your learning path, if you intend to learn both Lua and C or C++, I will advice you to try C instead of C++. C++ has more "high-level" features, but it is huge and although Lua can be used embedded in C++ code (of course this is an advanced topic anyway), it is designed to be directly embedded in a C application (it has an API which conforms to C conventions), so for a beginner probably the path Lua --> C --> C+Lua would be a bit easier. C in itself, although difficult to master, is a rather minimalistic language, so the information to digest about it is not that big.
Not to discourage you, but IMO both C and C++ are not the most suitable languages for absolute beginners (they are plenty of pitfalls and have almost no "safety nets" for beginners). But that's up to you, it heavily depends on your skills, dedication and motivation ;-)
Hope all this helps.
For windows,
Take a look at
http://nuwen.net/mingw.html
You should be able to extract the download to a usb directory. Then you can click on the .bat file open a command prompt with the correct path settings.
As a bonus, it already includes prebuilt boost, which will make your c++ use easier.
For the C/C++ piece would also recommend you start with C. Not for ideological reasons, just that it's a lot simpler if you're trying to work out the basics of compiling/linking etc.
As a first C compiler I would recommend the tiny C compiler
Tiny C Compiler
It's one of the simplest to get your head around that I've seen and you can still build lua libraries etc.
Once you're comfortable with that then progressing to one of the more powerful environments such as gcc under MingW or Visual C++ should be a bit less daunting.
Lua is trivial. Download the binaries, put them on your drive, and configure Sublime Text to invoke them on Lua files.
C/C++ is more complicated only because of the range of options is so vast. I use a 2003 version of Microsoft Visual C++, which covers my needs. I find a copy here.
Keep in mind that C++ is a vastly more complicated superset (non-strict) of C, so you're going to learn most of C in the process of learning C++. IMO, learning C first is better for a whole host of reasons. You'll hear some people argue the opposite, but in this case there's a clincher: Lua is written in C and its API is designed for C. Exposing idiomatic C++ (i.e. objects) to Lua is a big ball of complexity that you just don't need right now, while learning two languages.

Is it possible to develop iPhone/iPad apps all in C++ without writing any Objective-C code? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to program iPhone in C++
I'm very familiar with C++ and Java. I know iOS doesn't support Java. But I really don't want to learn another new language Objective-C. So is it possible to develop iPhone/iPad apps all in C++ without writing any Objective-C code? Android development gives you NDK as an option for C++ developers. I don't know if Apple gives a similar C++ SDK completely in C++ only.
Look at the JUCE library.
https://www.juce.com/get-juce/
I build my apps using it, but then I'm mostly interested in audio. Even so, the library is very rich in features and mature. The licenses are reasonably priced too. I am useless with Objective-C, but am able to make highly functional apps purely in C++. Check out the forum on the website and navigate to the iOS section.
Also check out the JUCE tag on stackoverflow
https://stackoverflow.com/questions/tagged/juce
..it is a little quiet here, but the main juce forum is quite busy.

Making GUIs in C++ [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
C++ library for making GUIs
I'm sort of new to C++, and I have made a couple simple programs, but the only way to run them is in the XCode compiler. I am wondering if there are any APIs or programs that can help me make a GUI for a C++ program and include any info if possible about that library. Thanks.
In general choosing a GUI library depends on:
The environment you are working on.
Whether you want your app to have a native look or not.
The IDE you are using.
Your expectations in terms of portability.
Which license you are ready to distribute your app into (GPL? LGPL? etc.).
So it's really hard to tell without knowing all these parameters.
Anyway, to name a few:
GTK+ / gtkmm
Qt
wxWidgets
FLTK
Fox toolkit
MFC (if you are using Visual Studio and want your app to run on Windows only).
I have used Qt in the past and it does the job pretty well and it's very well documented.
Also, from what I remember wxWidgets allows you to build GUIs that will have a native look on each platform.
[Edit]
My assumption about wxWidgets is confirmed by the following statement on their website:
Unlike other cross-platform toolkits, wxWidgets gives its applications
a truly native look and feel because it uses the platform's native API
rather than emulating the GUI.
This is a very broad question, but perhaps one of the most popular choices among many is Qt. It is powerful and importantly, cross platform.
Keep in mind it is a different ballgame if you mean GUI in terms of, say, a game interface - in this case you might need to look for something more specific, or even program your own - it's hard to tell from your question.
Is it so hard to ask uncle google and aunt wikipedia?
BTW take a look at JUCE. It's not as popular as metioned by others but it certainly deserves attention.
Since you're on Xcode, you have AppKit, the Mac OS X GUI library, available.
It will require using Objective-C or Objective-C++ but is very well integrated into that environment.

run interpret c++? [duplicate]

This question already has answers here:
Have you used any of the C++ interpreters (not compilers)? [closed]
(8 answers)
Closed 7 years ago.
Is there a way i can run c++ code as interpreted instead of compiled? so i can edit code and write functions on the fly?
Related:
Have you used any of the C++ interpreters (not compilers)?
Take a look at Ch, an embeddable C++ interpreter.
Ch is an embeddable C/C++ interpreter
for cross-platform scripting, shell
programming, 2D/3D plotting, numerical
computing, and embedded scripting. Ch
is a free and user-friendly
alternative to C/C++ compilers for
beginners to learn C/C++.
Ch and CINT (usually as part of the ROOT system) will interpret C++. However, my experience with CINT has not been good: the language support is not complete (particularly where templates are concerned), the execution is much slower, there has been a history of bugs with e.g. variable scope and loop exiting, and (IMO) it's more hassle than it's worth. As a language, C++ is singularly ill-designed for interpreted use.
If you need to run interpreted code, why not use a modern interpreted language like Python or Ruby? A tool like SWIG can be used to connect them to existing C/C++ libraries if needed.
Try these:
For C/C++: http://sourceforge.net/projects/igcc/
Only for C: http://neugierig.org/software/c-repl/
CINT certainly has single-stepping. I'm not sure about modification on the fly, though.
This doesnt exactly answer your question, but perhaps it will help.
The MS C++ compiler supports Edit and Continue, which allows you to stop, make changes, recompile & continue without shutting down you program.
I saw a presentation on ccons at CUSEC's demo camp back in January. Its aim is to provide an interactive interpreter like python's. It was in its early stages then but impressed me none the less.

Are there C++ free and fast (maybe standalone) refactoring tools for Windows? [duplicate]

This question already has answers here:
Good refactoring support for C++ [closed]
(6 answers)
Closed 3 years ago.
At the moment I am working in a pretty big project and I have been been asked to refactor some old code. Most of the refactoring is setting apart a big class into smaller components and functions.
I've searched and seen some other questions related with the topic but I am not very happy with the proposed options. The problem with these is that
Everybody here uses VS2005 in Windows and I am not very keen on using different editors for the same project.
The Reactor! plugin for VS2005 is just too slow to work with.
Reactor!Pro is not for free and I am not that sure it would work faster.
I was just wondering if there is any lightweight standalone GUI-based free tool that does not make my computer work slower than a lame snail. It does not have to make 150 refactorings just the basics. Maybe I am asking for too much!
I've used WholeTomato's Visual Assist X, they have a free trial but it's $249 for a full version, $99 for a "Personal License".
There is now a free Refactoring Extension for Visual Studio 2013, created by Microsoft. As I write this it's still in its early stages and does Rename refactoring only. The developers say there's more work to do (refactoring C++ is hard), but it's a very good start.
There's a Channel 9 video to accompany the launch of this extension: GoingNative 20: "Rename" Refactoring for Visual C++ (??!!)
Refactoring works in Eclipse CDT:
http://wiki.eclipse.org/images/a/a1/C%2B%2B_Refactoring_-_Now_for_Real.pdf