Hello.
I followed the instructions exactly like they were listed on your setting up for windows page. The only mod I have is that I am using MSVC++ 6.0 and not .net. When I try the example programs and I try to compile, I get the following errors. Any help would be appreciated. Thank you.
my code:
>
>pngwriter image(200, 200, 1.0, "out.png");
>image.plot(30, 40, 1.0, 0.0, 0.0);
>image.close();
Build Log
--------------------Configuration: mygraph - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\00a0701\LOCALS~1\Temp\RSP12A.tmp" with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR"Debug/" /Fp"Debug/mygraph.pch" /Yu"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\__c_code\ADREX\Graph\mygraph\mygraph.cpp"
"C:\__c_code\ADREX\Graph\mygraph\mygraphDlg.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\00a0701\LOCALS~1\Temp\RSP12A.tmp"
Creating temporary file "C:\DOCUME~1\00a0701\LOCALS~1\Temp\RSP12B.tmp" with contents
[
/nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FR"Debug/" /Fp"Debug/mygraph.pch" /Yc"stdafx.h" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\__c_code\ADREX\Graph\mygraph\StdAfx.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\00a0701\LOCALS~1\Temp\RSP12B.tmp"
Creating command line "link.exe C:\__c_code\pngwriter.lib /nologo /subsystem:windows /incremental:yes /pdb:"Debug/mygraph.pdb" /debug /machine:I386 /out:"Debug/mygraph.exe" /pdbtype:sept .\Debug\mygraph.obj .\Debug\mygraphDlg.obj .\Debug\StdAfx.obj .\Debug\mygraph.res "
Output Window
Compiling...
StdAfx.cpp
Compiling...
mygraph.cpp
mygraphDlg.cpp
Generating Code...
Linking...
libcpd.lib(iostream.obj) : error LNK2005: "public: __thiscall std::ios_base::Init::Init(void)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(iostream.obj) : error LNK2005: "public: __thiscall std::ios_base::Init::~Init(void)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale0.obj) : error LNK2005: "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int,bool)const " ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(locale0.obj) : error LNK2005: "public: bool __thiscall std::locale::_Iscloc(void)const " ([EMAIL PROTECTED]@std@@QBE_NXZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcpd.lib(ios.obj) : error LNK2005: "public: void __thiscall std::ios_base::clear(int,bool)" ([EMAIL PROTECTED]@std@@[EMAIL PROTECTED]) already defined in msvcprtd.lib(MSVCP60D.dll)
LIBCD.lib(fflush.obj) : error LNK2005: _fflush already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(strcat.obj) : error LNK2005: _strcpy already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
LIBCD.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrtd.lib(MSVCRTD.dll)
msvcrtd.lib(MSVCRTD.dll) : error LNK2005: __setmbcp already defined in LIBCD.lib(mbctype.obj)
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/mygraph.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating command line "bscmake.exe /nologo /o"Debug/mygraph.bsc" .\Debug\StdAfx.sbr .\Debug\mygraph.sbr .\Debug\mygraphDlg.sbr"
Creating browse info file...
Output Window
Results
mygraph.exe - 19 error(s), 3 warning(s)
Matthew Zobel
x46712
- Re: [PNGwriter-users] windows MSVC++ Matthew Zobel
- Re: [PNGwriter-users] windows MSVC++ Paul Blackburn
