|
What is "MinGW" and what is "MSVC?" |
Felix-The-Ghost
Member #9,729
April 2008
|
Now I think MSVC is Microsoft Visual...C... |
X-G
Member #856
December 2000
|
Why don't you try using Google before you ask questions like that? -- |
bamccaig
Member #7,536
July 2006
|
MSVC does in fact refer to the Microsoft Visual C++ IDE/development tools. MinGW is Minimalist GNU for Windows. Both are collections of tools for Windows, meaning the binaries built using them will be for Windows only (unless you can cross-compile... I've never done it, I don't know). However, the source code itself doesn't have to be compiler nor platform specific. Writing cross-platform code is possible regardless of what compiler you're using, usually with the help of preprocessor directives or pre-written APIs that do the cross-platform work themselves. The Allegro library, for example, is cross-platform; and can be compiled with a number of compilers depending on which platform you're on (Windows, Linux, etc.). Wikipedia could have at least helped to answer your question, so like X-G said, don't be afraid to do a little searching first. I find that typically the URL http://wikipedia.org/wiki/<Entity_name> is pretty successful in finding what you're looking for (where spaces in <Entity_name> are replaced with underscores and usually the first character is capitalized). And if it's not, you're usually given a link to search for what you're looking for, in which case it will usually come up pretty easily (assuming what you're looking for is well known). -- acc.js | al4anim - Allegro 4 Animation library | Allegro 5 VS/NuGet Guide | Allegro.cc Mockup | Allegro.cc <code> Tag | Allegro 4 Timer Example (w/ Semaphores) | Allegro 5 "Winpkg" (MSVC readme) | Bambot | Blog | C++ STL Container Flowchart | Castopulence Software | Check Return Values | Derail? | Is This A Discussion? Flow Chart | Filesystem Hierarchy Standard | Clean Code Talks - Global State and Singletons | How To Use Header Files | GNU/Linux (Debian, Fedora, Gentoo) | rot (rot13, rot47, rotN) | Streaming |
Speedo
Member #9,783
May 2008
|
Quote: if I use these for windows does it make the code nonportable? That depends entirely on the code you write. For example these two Hello World programs do exactly the same thing... the first can be compiled for any platform, the second only works on windows:
|
Felix-The-Ghost
Member #9,729
April 2008
|
Okay thanks guys, see I did look on google, and that's why I freaked out because I saw the keyword Windows and I automatically thought Windows only So I had to find out quick. |
Milan Mimica
Member #3,877
September 2003
|
When you compile it for Windows, the executable is Windows only. It has nothing to do with the code though.
-- |
GullRaDriel
Member #3,861
September 2003
|
Quote: go ahead and delete this topic if you want I never saw a topic deleted there, so be warned and mind what you write before posting ;-) "Code is like shit - it only smells if it is not yours" |
X-G
Member #856
December 2000
|
Quote: I never saw a topic deleted there Unless it was deleted before you ever had a chance to see it, of course... -- |
GullRaDriel
Member #3,861
September 2003
|
I did not say that no answer were ever deleted, as our supreme dictator had me in sight of his sniping weapon some few month ago. "Code is like shit - it only smells if it is not yours" |
Trezker
Member #1,739
December 2001
|
You can run some windows binaries on other platforms using wine. Though wine 1.1 seems to have some problems with the msvc*.dll files... So I recommend using Mingw. |
nonnus29
Member #2,606
August 2002
|
Quote: I actually didn't think about using wikipedia This should be your first instinct: think of something you don't know, and fill in the gap from wikipedia. Strong AI will arise when wikipedia can be piped into the human brain |
Arthur Kalliokoski
Second in Command
February 2005
|
The first program compiled in Linux won't run on Windows either. Java supposedly runs on any OS, but you need OS specific code (interpreter, JIT compiler, whatever) to make it do that. They all watch too much MSNBC... they get ideas. |
Tobias Dammers
Member #2,604
August 2002
|
Quote: This should be your first instinct: think of something you don't know, and fill in the gap from wikipedia. Strong AI will arise when wikipedia can be piped into the human brain I'm currently learning the entire wikipedia by heart, but those bastards keeps changing it all the time. OT: If the quality of your software is about the same level as your knowledge of programming tools, the internet, and computers in general, then cross-platformness is the last thing you need to worry about right now. --- |
|