I am recieving this error message when trying to compile and run any programs.
">MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Adam Marshall\Documents\Visual Studio 2010\Projects\no\Debug\no.exe : fatal error LNK1120: 1 unresolved externals"
I have Windows 7 operating System and I am using Visual Studio professional 2010. What do I need to to do to get this to work? I am doing some school homework assignments.
This is my code I am using.
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
//declare variables for miles and kilometers
double mi, km, x1;
// compute mile to kilometer conversions
km = 1.6093440 * mi;
mi = 354.5
//output
cout << "The conversion from miles to kilometers is" << km << endl;
Try a blank project. Not a console application (although that seems logical), but start from scratch, create a new C++ file for your empty project, write your code, and try again. If that doesn't work... reinstall. ;)
Apple is a trap. They like to make proprietary software that only works with proprietary hardware and vice versa. They're 10x worse than Microsoft in that regard.
If I get OSX, I'll have to get an iMac. Then I'll need a special iKeyboard and iMouse or else it won't work right. Then my normal phone will suddenly stop working and I'll need to get an iPhone.
(exaggerating of course. But Apple really does seem to go out of it's way to make itself as incompatible with 3rd party companies as it possibly can)
EDIT:
And besides... the whole world uses Windows. If you go against the grain it just makes things harder when you eventually have to interact with another machine.
So what about Fedora? Or some other GNU/Linux distro?
They're just as crazy as Ubuntu, IMO.
You can run WINE on them if you need to!
I suppose that's true. You could use a compatibility layer to run programs and have it work a good 70% of the time.
Or you can just use an OS that doesn't need a compatability layer to run programs natively and have it work 100% of the time.
When my Mac breaks in a few years I'll be switching to a fully open-source system that has had all its guts reworked by me.
Sounds pretty time consuming and impractical.
Personally I dont like having to pour days and days of effort into getting my computer to work.... which is probably why I don't like Linux. I want my computer to just work.
The computer is supposed to work for you, not the other way around.
You could use a compatibility layer to run programs and have it work a good 70% of the time. Or you can just use an OS that doesn't need a compatability layer to run programs natively and have it work 100% of the time.
And what if the OS in question sux? (Although apparently Windows 7 isn't too bad).
Finally Disch wrote:
Sounds pretty time consuming and impractical. Personally I dont like having to pour days and days of effort into getting my computer to work....
Time consuming, yes. Impractical, yes. I would not be going it to get an unstable system with potential to work, though. On the contrary, I'd take a very stable system and get it to work so much better for me.
If you think a Windows system seen and used everywhere will work for you better than an exotic system which may require maintenance from time to time but can perform incredible feats.... your choice.
EDIT: How did this topic get so quickly into OS fanboy/fangirlism?