Noob question

sorry it is a noob question i installed visual c++ 2008 but i am unable to compile hello.c program i get error

hello.obj : error LNK2019: unresolved external symbol _Printf referenced in func
tion _main
hello.exe : fatal error LNK1120: 1 unresolved externals
i am compiling through command line dont know how to use ide please please help
That error usually means you aren't including the proper library files to the linker. Though I thought MSVC did this by default for the C and C++ core libraries. Not really what to say to fix it because I never used '08 but rather used 2010.
Last edited on by closed account z6A9GNh0
Any other good compiler that i can use sir should be simple to manage and configure
Last edited on
For Windows I would have to say Code::Blocks ( http://www.codeblocks.org/ ). Other than that I really don't know of any other ones. Now Code::Blocks is an IDE that uses the MinG compiler (which if I remember right is a Windows implementation of the GNU C/C++ compilers and tools).
It seems that you made a typo and instead of writing the function name as printf you wrote Printf.
I tried code::blocks but as a starter I find it hard to use (that could just be me, idk) so I now use Microsoft Visual Studio 2012 Express. It's a free-to-use program (after 30 days you have to create an account or login with a Microsoft account to keep it though).
Last edited on
closed account (EwCjE3v7)
@op

Use mingw g++. U can also get an IDE, codeblocks. Just search google for codeblocks mingw
I don't like MS products... because of that.

If you get minGW, you can set up your own command line for it:

You can do this to add the compiler's executables to the command line: set PATH="[DIRECTORY]";%PATH%

For the directory, use the folder your binaries are in (MinGW\bin).

You can also use a free IDE to compile your program as well, but that's complete;y up to you.

I use NetBeans. I like it: bookmark lines, highlights the line you're currently on, very nice GUI....
Last edited on
thanks for your help i am highly grateful to all of you. thanks a lot it was a typo it cleared my error
Last edited on
I would also recommend mingw fow Windows users. My personal editor is either eclipse or notepad++
Topic archived. No new replies allowed.