No no no no no no no no no no no......
I thought I had solved this problem but its back, Ive just bought a laptop(vista) and my project gets lots of nice linking errors, it is the same project that works on my desktop(XP) and the same project which I had trouble with(above posts) when I include fstream.
The solution I used before(above posts) does not work now, I get the following errors:
1>------ Build started: Project: Gravity flip, Configuration: Debug Win32 ------
1>Linking...
1>LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
1>core.lib(DBDLLCore.obj) : error LNK2019: unresolved external symbol __imp__CoInitialize@4 referenced in function "unsigned long __cdecl InitDisplay(unsigned long,unsigned long,unsigned long,unsigned long,struct HINSTANCE__ *,char *)" (?InitDisplay@@YAKKKKKPAUHINSTANCE__@@PAD@Z)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
1>core.lib(DBDLLCore.obj) : error LNK2019: unresolved external symbol __imp__CoUninitialize@0 referenced in function "unsigned long __cdecl CloseDisplay(void)" (?CloseDisplay@@YAKXZ)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA@24 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA@36 referenced in function "void __cdecl WriteToRegistry(char *,char *,int)" (?WriteToRegistry@@YAXPAD0H@Z)
1>input.lib(CInputC.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function "void __cdecl CoreReadStringFromRegistry(char *,char *,char *)" (?CoreReadStringFromRegistry@@YAXPAD00@Z)
1>music.lib(CMusicC.obj) : error LNK2019: unresolved external symbol __imp__CoCreateInstance@20 referenced in function "void __cdecl LoadMusicCore(char *,int)" (?LoadMusicCore@@YAXPADH@Z)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>multiplayer.lib(CNetwork.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>system.lib(dxdiaginfo.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
1>animation.lib(renbase.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemAlloc@4 referenced in function "public: virtual long __stdcall CRendererInputPin::QueryId(unsigned short * *)" (?QueryId@CRendererInputPin@@UAGJPAPAG@Z)
1>animation.lib(amfilter.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(mtype.obj) : error LNK2001: unresolved external symbol __imp__CoTaskMemAlloc@4
1>animation.lib(amfilter.obj) : error LNK2019: unresolved external symbol __imp__CoFreeUnusedLibraries@0 referenced in function "public: virtual long __stdcall CBaseFilter::Register(void)" (?Register@CBaseFilter@@UAGJXZ)
1>animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysAllocString@4 referenced in function _WriteBSTR@8
1>animation.lib(wxutil.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function _FreeBSTR@4
1>animation.lib(mtype.obj) : error LNK2019: unresolved external symbol __imp__CoTaskMemFree@4 referenced in function "public: void __thiscall CMediaType::ResetFormatBuffer(void)" (?ResetFormatBuffer@CMediaType@@QAEXXZ)
1>system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantClear@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
1>system.lib(dxdiaginfo.obj) : error LNK2019: unresolved external symbol __imp__VariantInit@4 referenced in function "public: long __thiscall CDxDiagInfo::GetStringValue(struct IDxDiagContainer *,wchar_t *,char *,int)" (?GetStringValue@CDxDiagInfo@@QAEJPAUIDxDiagContainer@@PA_WPADH@Z)
1>Debug\Gravity flip.exe : fatal error LNK1120: 15 unresolved externals
1>Build log was saved at "file://c:\Users\Matty\Documents\Visual Studio 2008\Projects\Gravity flip\Gravity flip\Debug\BuildLog.htm"
1>Gravity flip - 28 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It is fine if I compile in release mode, but then I can't debug.
Other projects that dont use fstream compile fine in both release and debug mode.
Please come back Branflakes or anyone else who can help
Thanks people.