Replys like STFW arent helpful.
When the reply STFW is a link to a google search with multiple answers to your question on various web pages, they are.
The fact of the matter is that very few problems that you are going to run across in setting up an IDE or even your compiler errors go unanswered somewhere on the web, all it takes is for the person asking the question to get off their lazy bum and look for those answers.
For example
error LNK2001 and the very
first hit on that search gives us this information:
Code references something (such as a function, variable, or label) that the linker can't find in the libraries and object files.
Possible causes
* What the code asks for doesn't exist (the symbol is spelled incorrectly or uses the wrong case, for example).
* The code asks for the wrong thing (you are using mixed versions of the libraries, some from one version of the product, others from another version).
This error message is followed by fatal error LNK1120
By now that little light should be going off in your head that you are missing libpng.
can i change putenv to _putenv in cl_main.c?
You can ignore that.
warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
Again the very
first hit in a web search gives the answer:
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
Modify the setting at /Project/Setting/Link/Input/
Ignore libraries:
libc.lib, libcmt.lib, msvcrt.lib, libcmtd.lib, msvcrtd.lib
That will be OK. Get more details in article in MSDN(below)
This setting is for the Debug Single-threaded, in the future, we may make a release edition. This setting may be modified at that time
Now obviously you need to modify this to fit your specific needs a task that I leave up to you, happy learning