As someone told me once, if you don't know what these words mean, you probably shouldn't be touching the code. Compiling errors are complicated and annoying even for the people who know what they're doing.
compiler is program which translates source code to machine code. you are using Visual Studio C++ IDE which has own compiler, what version of VSC++ u r using? Express, ultimate etc.
stdin.h and math.h are standard headers in almost every compiler and IDE. i think you deleted it
and
JoJoBond:
You are missing standard libraries reinstall your compiler.
Thanks I sorted that out but now I have a new problem! Whenever I try to compile this comes up: 1>------ Build started: Project: PowderToy, Configuration: Debug Win32 ------ 1> powder.c 1>C:\Users\Compaq_Owner\Documents\Wilf's folder\powder stuff\FacialTurd-The-Powder-Toy-9c805f8\includes\powder.h(271): error C2078: too many initializers 1>src\powder.c(330): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(331): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(332): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(583): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(584): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(585): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(586): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(588): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(589): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(590): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(591): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(593): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(594): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(595): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(596): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(598): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(599): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(600): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(601): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(622): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(623): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(625): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(626): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(693): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(855): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data 1>src\powder.c(865): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(1149): error C2065: 'PT_GOL' : undeclared identifier 1>src\powder.c(1218): warning C4305: '=' : truncation from 'double' to 'float' 1>src\powder.c(1220): warning C4305: '=' : truncation from 'double' to 'float' 1>src\powder.c(1223): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(1225): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(1228): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(1230): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(1455): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(1579): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(2247): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2248): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2334): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2335): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2348): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2349): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2361): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2362): warning C4305: '*=' : truncation from 'double' to 'float' 1>src\powder.c(2532): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(2634): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(2635): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(2664): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(2670): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(2895): warning C4553: '==' : operator has no effect; did you intend '='? 1>src\powder.c(3315): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(3336): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(3337): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(3611): warning C4305: 'initializing' : truncation from 'double' to 'float' 1>src\powder.c(3624): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3625): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3626): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3627): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3633): warning C4244: '+=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3779): warning C4244: '=' : conversion from 'unsigned int' to 'float', possible loss of data 1>src\powder.c(3819): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3835): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(3844): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3850): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3856): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3862): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3894): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3895): warning C4244: '*=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3902): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3919): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data 1>src\powder.c(3920): warning C4244: '*=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3927): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data 1>src\powder.c(3945): warning C4305: '-=' : truncation from 'double' to 'float' 1>src\powder.c(3946): warning C4305: '+=' : truncation from 'double' to 'float' 1>src\powder.c(3951): warning C4305: '-=' : truncation from 'double' to 'float' 1>src\powder.c(3952): warning C4305: '+=' : truncation from 'double' to 'float' 1>src\powder.c(4065): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(4066): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(4125): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(4125): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data 1>src\powder.c(4135): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data 1> interface.c 1>C:\Users\Compaq_Owner\Documents\Wilf's folder\powder stuff\FacialTurd-The-Powder-Toy-9c805f8\includes\powder.h(271): error C2078: too many initializers 1>src\interface.c(884): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data 1>src\interface.c(1314): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data 1>src\interface.c(1315): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data 1>src\interface.c(1316): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data 1>src\interface.c(1316): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data 1>src\interface.c(1495): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data 1>src\interface.c(1496): warning C4244: '=' : conversion from 'double' to 'int', possible loss of data 1>src\interface.c(1497): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data 1>src\interface.c(1497): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data 1>src\interface.c(1738): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\interface.c(1742): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data 1>src\interface.c(1746): warning C4244: '=' : conversion from 'int' t
That seems like a missing brace or something that is not needed is placed or PT_GOL is somewhere not to be found. Have you edited anything yet? If not, redownload the source (at least powder.h and powder.c) If that does not solve the problem, then something is wrong. If yes, do what you have done again (compiling every time you put something that you know that should work). Then it should work now (assuming what you have placed is correct).
Definition of Compiler: It is like a language translator that translates your human-readable code to a language that the computer can understand.
In any case, when you put something like the one above (the one with 1>src\interface.c(1738): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data, etc.), you only need to post the one that says 'error' like: 1>C:\Users\Compaq_Owner\Documents\Wilf's folder\powder stuff\FacialTurd-The-Powder-Toy-9c805f8\includes\powder.h(271): error C2078: too many initializers 1>src\powder.c(1149): error C2065: 'PT_GOL' : undeclared identifier
That way, the one that will help do not need to search from all the warnings(which is not that harmful, it will still compile even if there are tons of them) the source already have.