Stoic96

I've been having this problem for several days now, and despite finding no less than ten potential solutions, nothing has fixed my problem yet.

My code:

// fstream:Surprisepen

#include <windows.h>

#include <fstream>

using namespace std;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)

{

fstream filestr;

filestr.open ("WTF.txt", fstream::in | fstream:Surpriseut | fstream::app);

// >> i/o operations here <<

filestr.close();

return 0;

}

And my build output:

------ Build started: Project: WTF, Configuration: Debug Win32 ------

Compiling...

WTF.cpp

Linking...

Processed /NODEFAULTLIB:libc.lib

Starting pass 1

Processed /DEFAULTLIB:uuid.lib

Processed /DEFAULTLIB:msvcprtd

Processed /DEFAULTLIB:MSVCRTD

Processed /DEFAULTLIBSurpriseLDNAMES

Searching libraries

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\kernel32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\user32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\winspool.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\comdlg32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\shell32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\ole32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\oleaut32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\uuid.lib:

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib:

Found "__declspec(dllimport) public: void __thiscall std::basic_fstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (__imp_ _D $basic_fstream@DU $char_traits@D@std@@@std@@QAEXXZ)

Referenced in WTF.obj

Loaded msvcprtd.lib(MSVCP80D.dll)

Found "__declspec(dllimport) public: void __thiscall std::basic_fstream<char,struct std::char_traits<char> >::close(void)" (__imp_ close@ $basic_fstream@DU $char_traits@D@std@@@std@@QAEXXZ)

Referenced in WTF.obj

Loaded msvcprtd.lib(MSVCP80D.dll)

Found "__declspec(dllimport) public: __thiscall std::basic_fstream<char,struct std::char_traits<char> >::basic_fstream<char,struct std::char_traits<char> >(void)" (__imp_ 0 $basic_fstream@DU $char_traits@D@std@@@std@@QAE@XZ)

Referenced in WTF.obj

Loaded msvcprtd.lib(MSVCP80D.dll)

Found __IMPORT_DESCRIPTOR_MSVCP80D

Referenced in msvcprtd.lib(MSVCP80D.dll)

Referenced in msvcprtd.lib(MSVCP80D.dll)

Referenced in msvcprtd.lib(MSVCP80D.dll)

Loaded msvcprtd.lib(MSVCP80D.dll)

Found __NULL_IMPORT_DESCRIPTOR

Referenced in msvcprtd.lib(MSVCP80D.dll)

Loaded msvcprtd.lib(MSVCP80D.dll)

Found MSVCP80D_NULL_THUNK_DATA

Referenced in msvcprtd.lib(MSVCP80D.dll)

Loaded msvcprtd.lib(MSVCP80D.dll)

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib:

Found @_RTC_CheckStackVars@8

Referenced in WTF.obj

Loaded MSVCRTD.lib(stack.obj)

Found __RTC_Shutdown

Referenced in WTF.obj

Loaded MSVCRTD.lib(init.obj)

Found _WinMainCRTStartup

Loaded MSVCRTD.lib(crtexew.obj)

Found "void __cdecl _RTC_Failure(void *,int)" ( _RTC_Failure@@YAXPAXH@Z)

Referenced in MSVCRTD.lib(stack.obj)

Loaded MSVCRTD.lib(error.obj)

Found __RTC_SetErrorFuncW

Referenced in MSVCRTD.lib(init.obj)

Loaded MSVCRTD.lib(userapi.obj)

Found __CRT_RTC_INITW

Referenced in MSVCRTD.lib(init.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __forceCRTManifest

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(crtmanifest.obj)

Found ___CxxSetUnhandledExceptionFilter

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(unhandld.obj)

Found __imp___configthreadlocale

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___globallocalestatus

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(xthdloc.obj)

Found __setdefaultprecision

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(fp8.obj)

Found __imp____setusermatherr

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __matherr

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(merr.obj)

Found __setargv

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(dllargv.obj)

Found __RTC_Initialize

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(initsect.obj)

Found __adjust_fdiv

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(adjustfd.obj)

Found __imp___adjust_fdiv

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __commode

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(xncommod.obj)

Found __imp____p__commode

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __fmode

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(xtxtmode.obj)

Found __imp____p__fmode

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___onexitbegin

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(atonexit.obj)

Found __imp___encode_pointer

Referenced in MSVCRTD.lib(crtexew.obj)

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp____set_app_type

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __amsg_exit

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp____getmainargs

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __dowildcard

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(wildcard.obj)

Found __newmode

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(_newmode.obj)

Found ___security_init_cookie

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(gs_support.obj)

Found __imp___exit

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __XcptFilter

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___cexit

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp__exit

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___ismbblead

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___acmdln

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___CrtSetCheckCount

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __IsNonwritableInCurrentImage

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(pesect.obj)

Found __imp___CrtDbgReportW

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __initterm

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___xc_a

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(cinitexe.obj)

Processed /DEFAULTLIB:kernel32.lib

Processed /DISALLOWLIB:libcd.lib

Processed /DISALLOWLIB:libcmt.lib

Processed /DISALLOWLIB:libcmtd.lib

Processed /DISALLOWLIB:msvcrt.lib

Found __initterm_e

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___native_startup_state

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded MSVCRTD.lib(natstart.obj)

Found ___security_cookie

Referenced in MSVCRTD.lib(pesect.obj)

Referenced in MSVCRTD.lib(crtexew.obj)

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(atonexit.obj)

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded MSVCRTD.lib(gs_cookie.obj)

Found __except_handler4

Referenced in MSVCRTD.lib(crtexew.obj)

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(atonexit.obj)

Referenced in MSVCRTD.lib(pesect.obj)

Loaded MSVCRTD.lib(chandler4gs.obj)

Found "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" ( _RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z)

Referenced in MSVCRTD.lib(error.obj)

Loaded MSVCRTD.lib(pdblkup.obj)

Found @__security_check_cookie@4

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(chandler4gs.obj)

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded MSVCRTD.lib(secchk.obj)

Found __IMPORT_DESCRIPTOR_MSVCR80D

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found "void __cdecl terminate(void)" ( terminate@@YAXXZ)

Referenced in MSVCRTD.lib(unhandld.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __controlfp_s

Referenced in MSVCRTD.lib(fp8.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __invoke_watson

Referenced in MSVCRTD.lib(fp8.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __unlock

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___dllonexit

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __lock

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___onexit

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __imp___decode_pointer

Referenced in MSVCRTD.lib(atonexit.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __except_handler4_common

Referenced in MSVCRTD.lib(chandler4gs.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found ___report_gsfailure

Referenced in MSVCRTD.lib(secchk.obj)

Loaded MSVCRTD.lib(gs_report.obj)

Found MSVCR80D_NULL_THUNK_DATA

Referenced in MSVCRTD.lib(MSVCR80D.dll)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Found __crt_debugger_hook

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded MSVCRTD.lib(MSVCR80D.dll)

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib:

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\kernel32.lib:

Found __imp__InterlockedExchange@8

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__Sleep@4

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__InterlockedCompareExchange@12

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetStartupInfoA@4

Referenced in MSVCRTD.lib(crtexew.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__RaiseException@16

Referenced in MSVCRTD.lib(error.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__DebugBreak@0

Referenced in MSVCRTD.lib(error.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__WideCharToMultiByte@32

Referenced in MSVCRTD.lib(error.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__IsDebuggerPresent@0

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__MultiByteToWideChar@24

Referenced in MSVCRTD.lib(error.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__lstrlenA@4

Referenced in MSVCRTD.lib(error.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetProcAddress@8

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__LoadLibraryA@4

Referenced in MSVCRTD.lib(error.obj)

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__SetUnhandledExceptionFilter@4

Referenced in MSVCRTD.lib(unhandld.obj)

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__QueryPerformanceCounter@4

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetTickCount@0

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetCurrentThreadId@0

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetCurrentProcessId@0

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetSystemTimeAsFileTime@4

Referenced in MSVCRTD.lib(gs_support.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__HeapFree@12

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__HeapAlloc@12

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetProcessHeap@0

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetModuleFileNameW@12

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__VirtualQuery@12

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__FreeLibrary@4

Referenced in MSVCRTD.lib(pdblkup.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__TerminateProcess@8

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__GetCurrentProcess@0

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __imp__UnhandledExceptionFilter@4

Referenced in MSVCRTD.lib(gs_report.obj)

Loaded kernel32.lib(KERNEL32.dll)

Found __IMPORT_DESCRIPTOR_KERNEL32

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Referenced in kernel32.lib(KERNEL32.dll)

Loaded kernel32.lib(KERNEL32.dll)

Found KERNEL32_NULL_THUNK_DATA

Referenced in kernel32.lib(KERNEL32.dll)

Loaded kernel32.lib(KERNEL32.dll)

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\user32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\winspool.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\comdlg32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\shell32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\ole32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\oleaut32.lib:

Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\uuid.lib:

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib:

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib:

Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib:

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:

Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:

Finished searching libraries

Finished pass 1

Generating non-SAFESEH image.

Invoking CVTRES.EXE:

/machine:x86

/verbose

/out:"C:\DOCUME~1\CRAWLI~1\LOCALS~1\Temp\lnk9F.tmp"

/readonly

".\Debug\WTF.exe.embed.manifest.res"

Microsoft (R) Windows Resource To Object Converter Version 8.00.50727.762

Copyright (C) Microsoft Corporation. All rights reserved.

adding resource. type:MANIFEST, name:1, language:0x0409, flags:0x30, size:2048

WTF.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_fstream<char,struct std::char_traits<char> >:Surprisepen(char const *,int)" (__imp_ open@ $basic_fstream@DU $char_traits@D@std@@@std@@QAEXPBDH@Z) referenced in function _WinMain@16

C:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\WTF.exe : fatal error LNK1120: 1 unresolved externals

Build log was saved at "file://c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\BuildLog.htm"

WTF - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm fairly sure that the problem is just a bad setting in VC++ somewhere, but I'm completely out of ideas as to what it might be.

I'd appreciate any suggestions.



Re: Visual C++ Express Edition <fstream> and LNK2019

einaros

Can you post the contents of your build log





Re: Visual C++ Express Edition <fstream> and LNK2019

Stoic96

Sure.

Build Log

Build started: Project: WTF, Configuration: Debug|Win32

Command Lines
Creating temporary file "c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\RSP00001D26082104.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /ZI /Gd /TP ".\WTF.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\RSP00001D26082104.rsp" /nologo /errorReportStick out tonguerompt"
Creating temporary file "c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\RSP00001E26082104.rsp" with contents
[
/OUT:"C:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\WTF.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\WTF.exe.intermediate.manifest" /NODEFAULTLIB:"libc.lib" /DEBUG /PDB:"c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\WTF.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 /VERBOSE hge.lib hgehelp.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib

".\Debug\WTF.obj"

".\Debug\WTF.exe.embed.manifest.res"
]
Creating command line "link.exe @"c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\RSP00001E26082104.rsp" /NOLOGO /ERRORREPORTStick out tongueROMPT"
Output Window
Compiling...
WTF.cpp
Linking...
Processed /NODEFAULTLIB:libc.lib
Starting pass 1
Processed /DEFAULTLIB:uuid.lib
Processed /DEFAULTLIB:msvcprtd
Processed /DEFAULTLIB:MSVCRTD
Processed /DEFAULTLIBSurpriseLDNAMES
Searching libraries
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\kernel32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\user32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\winspool.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\comdlg32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\shell32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\ole32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\oleaut32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\uuid.lib:
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib:
   Found "__declspec(dllimport) public: void __thiscall std::basic_fstream >::`vbase destructor'(void)" (__imp_  _D $basic_fstream@DU $char_traits@D@std@@@std@@QAEXXZ)
    Referenced in WTF.obj
    Loaded msvcprtd.lib(MSVCP80D.dll)
   Found "__declspec(dllimport) public: void __thiscall std::basic_fstream >::close(void)" (__imp_ close@ $basic_fstream@DU $char_traits@D@std@@@std@@QAEXXZ)
    Referenced in WTF.obj
    Loaded msvcprtd.lib(MSVCP80D.dll)
   Found "__declspec(dllimport) public: __thiscall std::basic_fstream >::basic_fstream >(void)" (__imp_  0 $basic_fstream@DU $char_traits@D@std@@@std@@QAE@XZ)
    Referenced in WTF.obj
    Loaded msvcprtd.lib(MSVCP80D.dll)
   Found __IMPORT_DESCRIPTOR_MSVCP80D
    Referenced in msvcprtd.lib(MSVCP80D.dll)
    Referenced in msvcprtd.lib(MSVCP80D.dll)
    Referenced in msvcprtd.lib(MSVCP80D.dll)
    Loaded msvcprtd.lib(MSVCP80D.dll)
   Found __NULL_IMPORT_DESCRIPTOR
    Referenced in msvcprtd.lib(MSVCP80D.dll)
    Loaded msvcprtd.lib(MSVCP80D.dll)
   Found MSVCP80D_NULL_THUNK_DATA
    Referenced in msvcprtd.lib(MSVCP80D.dll)
    Loaded msvcprtd.lib(MSVCP80D.dll)
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib:
   Found @_RTC_CheckStackVars@8
    Referenced in WTF.obj
    Loaded MSVCRTD.lib(stack.obj)
   Found __RTC_Shutdown
    Referenced in WTF.obj
    Loaded MSVCRTD.lib(init.obj)
   Found _WinMainCRTStartup
    Loaded MSVCRTD.lib(crtexew.obj)
   Found "void __cdecl _RTC_Failure(void *,int)" ( _RTC_Failure@@YAXPAXH@Z)
    Referenced in MSVCRTD.lib(stack.obj)
    Loaded MSVCRTD.lib(error.obj)
   Found __RTC_SetErrorFuncW
    Referenced in MSVCRTD.lib(init.obj)
    Loaded MSVCRTD.lib(userapi.obj)
   Found __CRT_RTC_INITW
    Referenced in MSVCRTD.lib(init.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __forceCRTManifest
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(crtmanifest.obj)
   Found ___CxxSetUnhandledExceptionFilter
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(unhandld.obj)
   Found __imp___configthreadlocale
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___globallocalestatus
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(xthdloc.obj)
   Found __setdefaultprecision
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(fp8.obj)
   Found __imp____setusermatherr
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __matherr
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(merr.obj)
   Found __setargv
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(dllargv.obj)
   Found __RTC_Initialize
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(initsect.obj)
   Found __adjust_fdiv
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(adjustfd.obj)
   Found __imp___adjust_fdiv
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __commode
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(xncommod.obj)
   Found __imp____p__commode
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __fmode
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(xtxtmode.obj)
   Found __imp____p__fmode
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___onexitbegin
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(atonexit.obj)
   Found __imp___encode_pointer
    Referenced in MSVCRTD.lib(crtexew.obj)
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp____set_app_type
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __amsg_exit
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp____getmainargs
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __dowildcard
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(wildcard.obj)
   Found __newmode
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(_newmode.obj)
   Found ___security_init_cookie
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(gs_support.obj)
   Found __imp___exit
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __XcptFilter
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___cexit
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp__exit
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___ismbblead
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___acmdln
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___CrtSetCheckCount
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __IsNonwritableInCurrentImage
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(pesect.obj)
   Found __imp___CrtDbgReportW
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __initterm
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___xc_a
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(cinitexe.obj)
Processed /DEFAULTLIB:kernel32.lib
 Processed /DISALLOWLIB:libcd.lib
 Processed /DISALLOWLIB:libcmt.lib
 Processed /DISALLOWLIB:libcmtd.lib
 Processed /DISALLOWLIB:msvcrt.lib
   Found __initterm_e
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___native_startup_state
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded MSVCRTD.lib(natstart.obj)
   Found ___security_cookie
    Referenced in MSVCRTD.lib(pesect.obj)
    Referenced in MSVCRTD.lib(crtexew.obj)
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(atonexit.obj)
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded MSVCRTD.lib(gs_cookie.obj)
   Found __except_handler4
    Referenced in MSVCRTD.lib(crtexew.obj)
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(atonexit.obj)
    Referenced in MSVCRTD.lib(pesect.obj)
    Loaded MSVCRTD.lib(chandler4gs.obj)
   Found "int __cdecl _RTC_GetSrcLine(unsigned char *,wchar_t *,unsigned long,int *,wchar_t *,unsigned long)" ( _RTC_GetSrcLine@@YAHPAEPA_WKPAH1K@Z)
    Referenced in MSVCRTD.lib(error.obj)
    Loaded MSVCRTD.lib(pdblkup.obj)
   Found @__security_check_cookie@4
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(chandler4gs.obj)
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded MSVCRTD.lib(secchk.obj)
   Found __IMPORT_DESCRIPTOR_MSVCR80D
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found "void __cdecl terminate(void)" ( terminate@@YAXXZ)
    Referenced in MSVCRTD.lib(unhandld.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __controlfp_s
    Referenced in MSVCRTD.lib(fp8.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __invoke_watson
    Referenced in MSVCRTD.lib(fp8.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __unlock
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___dllonexit
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __lock
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___onexit
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __imp___decode_pointer
    Referenced in MSVCRTD.lib(atonexit.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __except_handler4_common
    Referenced in MSVCRTD.lib(chandler4gs.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found ___report_gsfailure
    Referenced in MSVCRTD.lib(secchk.obj)
    Loaded MSVCRTD.lib(gs_report.obj)
   Found MSVCR80D_NULL_THUNK_DATA
    Referenced in MSVCRTD.lib(MSVCR80D.dll)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
   Found __crt_debugger_hook
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded MSVCRTD.lib(MSVCR80D.dll)
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib:
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\kernel32.lib:
   Found __imp__InterlockedExchange@8
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__Sleep@4
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__InterlockedCompareExchange@12
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetStartupInfoA@4
    Referenced in MSVCRTD.lib(crtexew.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__RaiseException@16
    Referenced in MSVCRTD.lib(error.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__DebugBreak@0
    Referenced in MSVCRTD.lib(error.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__WideCharToMultiByte@32
    Referenced in MSVCRTD.lib(error.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__IsDebuggerPresent@0
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__MultiByteToWideChar@24
    Referenced in MSVCRTD.lib(error.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__lstrlenA@4
    Referenced in MSVCRTD.lib(error.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetProcAddress@8
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__LoadLibraryA@4
    Referenced in MSVCRTD.lib(error.obj)
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__SetUnhandledExceptionFilter@4
    Referenced in MSVCRTD.lib(unhandld.obj)
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__QueryPerformanceCounter@4
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetTickCount@0
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetCurrentThreadId@0
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetCurrentProcessId@0
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetSystemTimeAsFileTime@4
    Referenced in MSVCRTD.lib(gs_support.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__HeapFree@12
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__HeapAlloc@12
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetProcessHeap@0
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetModuleFileNameW@12
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__VirtualQuery@12
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__FreeLibrary@4
    Referenced in MSVCRTD.lib(pdblkup.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__TerminateProcess@8
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__GetCurrentProcess@0
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __imp__UnhandledExceptionFilter@4
    Referenced in MSVCRTD.lib(gs_report.obj)
    Loaded kernel32.lib(KERNEL32.dll)
   Found __IMPORT_DESCRIPTOR_KERNEL32
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Referenced in kernel32.lib(KERNEL32.dll)
    Loaded kernel32.lib(KERNEL32.dll)
   Found KERNEL32_NULL_THUNK_DATA
    Referenced in kernel32.lib(KERNEL32.dll)
    Loaded kernel32.lib(KERNEL32.dll)
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\user32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\gdi32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\winspool.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\comdlg32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\advapi32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\shell32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\ole32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\oleaut32.lib:
  Searching C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\uuid.lib:
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\msvcprtd.lib:
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRTD.lib:
  Searching C:\Program Files\Microsoft Visual Studio 8\VC\lib\OLDNAMES.lib:
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hge.lib:
  Searching C:\Documents and Settings\CrawlingEye\Desktop\Jared\MMO\Libraries\HGE\lib\vc\hgehelp.lib:
Finished searching libraries
Finished pass 1
Generating non-SAFESEH image.
Invoking CVTRES.EXE:
 /machine:x86
 /verbose
 /out:"C:\DOCUME~1\CRAWLI~1\LOCALS~1\Temp\lnk9F.tmp"
 /readonly
 ".\Debug\WTF.exe.embed.manifest.res"
Microsoft (R) Windows Resource To Object Converter Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
adding resource. type:MANIFEST, name:1, language:0x0409, flags:0x30, size:2048
WTF.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_fstream >:Surprisepen(char const *,int)" (__imp_ open@ $basic_fstream@DU $char_traits@D@std@@@std@@QAEXPBDH@Z) referenced in function _WinMain@16
C:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\WTF.exe : fatal error LNK1120: 1 unresolved externals
Results
Build log was saved at "file://c:\Documents and Settings\CrawlingEye\My Documents\Visual Studio 2005\Projects\WTF\Debug\BuildLog.htm"
WTF - 2 error(s), 0 warning(s)

Hope that helps.





Re: Visual C++ Express Edition <fstream> and LNK2019

einaros

Open your project properties and go to configuration properties -> linker -> input. Flip the "Ignore default libraries" to "No".





Re: Visual C++ Express Edition <fstream> and LNK2019

Stoic96

"Ignore all default libraries" was already set to "No."

I ignore libc.lib because it causes other issues, but taking that off the ignore list didn't help, either.





Re: Visual C++ Express Edition <fstream> and LNK2019

einaros

Yeah, I was too quick on the draw there. Missed the libc part. Anyway, to take a step back; does this happen if you create a completely fresh solution as well

Also, have you installed any updates for VC++ Express, e.g. SP1





Re: Visual C++ Express Edition <fstream> and LNK2019

Stoic96

I do have this problem when I create a completely new project. In fact, my example code here IS a new solution.

I installed SP1 with VC++. As far as I know, my installation is current.





Re: Visual C++ Express Edition <fstream> and LNK2019

nobugz

The fstream::open(const char*, int) method is implemented in <fstream> by an inline function that calls fstream::open(const char*, iosbase::openmode). Clearly, there's something wrong with your <fstream> header file. I'd start by uninstalling Haaf's Game Engine.





Re: Visual C++ Express Edition <fstream> and LNK2019

Stoic96

Well, apparently you were right about something being wrong with my <fstream>. It works now, after a complete deletion of everything associated with VC++ and reinstall. I doubt, however, that it has anything to do with HGE, considering that HGE doesn't "install"...it's just a couple of header files.

At any rate, thanks for the help.