G
Guest
I've been following the tutorial here to learn Windows programming (along
with the help file from the Windows Platform SDK):
http://www.cprogramming.com/tutorial/opengl_windows_programming.html
and when I try compiling the code given in this tutorial (even using copy
paste instead of manually typing it), I keep getting errors that prevent me
from compiling it. At first, it was because windows.h couldn't be found, but
that issue was resolved and now I've got one thing that is very confusing.
When I build, I get the error "unresolved external symbol". This is the
build log I get:
------ Build started: Project: Windowsapptest, Configuration: Debug Win32
------
Compiling...
firsttest.cpp
Linking...
firsttest.obj : error LNK2019: unresolved external symbol
__imp__MessageBoxA@16">__imp__MessageBoxA@16</a> referenced in function <a
href="mailto:_WinMain@16
C:\My Documents\My programs\Windowsapptest\Debug\Windowsapptest.exe : fatal
error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\My Documents\My
programs\Windowsapptest\Windowsapptest\Debug\BuildLog.htm"
Windowsapptest - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have Windows XP Pro SP2 and Visual C++ 2005 Express. From another forum,
I quite some help, but I was later told to ask elsewhere so I figured I'd
post here. You can see the details (and a few screenshots) here:
http://forums.howwhatwhy.com/showthreaded.php?Cat=&Board=software&Number=290240&page=&view=&sb=5&o=
How can I fix this?
with the help file from the Windows Platform SDK):
http://www.cprogramming.com/tutorial/opengl_windows_programming.html
and when I try compiling the code given in this tutorial (even using copy
paste instead of manually typing it), I keep getting errors that prevent me
from compiling it. At first, it was because windows.h couldn't be found, but
that issue was resolved and now I've got one thing that is very confusing.
When I build, I get the error "unresolved external symbol". This is the
build log I get:
------ Build started: Project: Windowsapptest, Configuration: Debug Win32
------
Compiling...
firsttest.cpp
Linking...
firsttest.obj : error LNK2019: unresolved external symbol
__imp__MessageBoxA@16">__imp__MessageBoxA@16</a> referenced in function <a
href="mailto:_WinMain@16
C:\My Documents\My programs\Windowsapptest\Debug\Windowsapptest.exe : fatal
error LNK1120: 1 unresolved externals
Build log was saved at "file://c:\My Documents\My
programs\Windowsapptest\Windowsapptest\Debug\BuildLog.htm"
Windowsapptest - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have Windows XP Pro SP2 and Visual C++ 2005 Express. From another forum,
I quite some help, but I was later told to ask elsewhere so I figured I'd
post here. You can see the details (and a few screenshots) here:
http://forums.howwhatwhy.com/showthreaded.php?Cat=&Board=software&Number=290240&page=&view=&sb=5&o=
How can I fix this?