Im having trouble building my program, I keep getting these errors:
Build started: Project: prgm2, Configuration: Debug Win32 ------
1>Build started 3/29/2012 11:19:17 AM.
1>PrepareForBuild:
1> Creating directory "F:\ENGR\prgm2\Debug\".
1>InitializeBuildStatus:
1> Creating "Debug\prgm2.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>F:\ENGR\prgm2\Debug\prgm2.exe : fatal error LNK1120: 1 unresolved externals
1>
1>Build FAILED.
Here is my program:
//HW7CShumate
#include <iomanip>
#include <iostream>
#include <cmath>
#include <fstream>
using namespace std;
double k = 1.25E6; // (spring constant)
double c = 1.40E4; // (dampening coefficient)
double m = 1814.369; // (mass of car)
double phd = .2032; // (depth of pot hole)
Is the file that this code resides in included in your solution? Meaning, is this main.cpp or is it someotherfile.cpp? If it is someotherfile.cpp make sure that you add the file to your project.