Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » PolyDeepCopyNew: MSC / GCC differ in behaviour
Re: PolyDeepCopyNew: MSC / GCC differ in behaviour [message #29336 is a reply to message #29323] Fri, 15 October 2010 15:02 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
tdm-mingw-1.908.0-4.4.1-2.exe

seems weired..

maybe i should try with a more recent version

EDIT: my current version of MINGW (4.4.0) doesnt compile it either. which MINGW version did u use?

EDIT: i tried the current TDM release, 4.5.1, same issue. doesnt compile. dont get how you made it..

Quote:



cd C:\dfm-git-cl\Blate
Blate.cpp
c++ -c -I"C:\dfm-git-cl" -I"C:\uppsvn\bazaar" -I"C:\uppsvn\uppsrc" -I"C:\MinGW32\include" -DflagMAIN -DflagGCC -DflagDEBUG -DflagDEBUG_FULL -DflagBLITZ -D
flagWIN32 -DbmYEAR=2010 -DbmMONTH=10 -DbmDAY=15 -DbmHOUR=16 -DbmMINUTE=2 -DbmSECOND=31 -g2 -static -fexceptions -D_DEBUG -O0 -gstabs -x c++ "C:\dfm-
git-cl\Blate\Blate.cpp" -o "C:/uppsvn/out/Blate/TDM451.Debug.Debug_full.Main\Blate.o"
compiled in (0:00.01)
In file included from C:\uppsvn\uppsrc/Core/Core.h:219:0,
from C:\dfm-git-cl\Blate\Blate.cpp:1:
C:\uppsvn\uppsrc/Core/Topt.h: In function 'T* Upp::DeepCopyNew(const T&) [with T = Upp::CopyableC<Base, CBase>]':
C:\uppsvn\uppsrc/Core/Vcont.hpp:363:3: instantiated from 'void Upp::Array<T>::__DeepCopy(const Upp::Array<T>&) [with T = Upp::CopyableC<Base, CBase>]'
C:\uppsvn\uppsrc/Core/Vcont.h:229:40: instantiated from 'Upp::Array<T>::Array(const Upp::Array<T>&, int) [with T = Upp::CopyableC<Base, CBase>, Upp::Arra
y<T> = Upp::Array<Upp::CopyableC<Base, CBase> >]'
C:\uppsvn\uppsrc/Core/Topt.h:235:42: instantiated from 'Upp::Array<Upp::CopyableC<Base, CBase> >& Upp::operator<<=(Upp::Array<Upp::CopyableC<Base, CBase>
>&, const Upp::Array<Upp::CopyableC<Base, CBase> >&)'
C:\dfm-git-cl\Blate\Blate.cpp:85:9: instantiated from here
C:\uppsvn\uppsrc/Core/Topt.h:142:16: error: cannot allocate an object of abstract type 'Upp::CopyableC<Base, CBase>'
C:\dfm-git-cl\Blate\Blate.cpp:20:1: note: because the following virtual functions are pure within 'Upp::CopyableC<Base, CBase>':
C:\dfm-git-cl\Blate\Blate.cpp:50:15: note: virtual void CBase::Offer(int)
C:\dfm-git-cl\Blate\Blate.cpp:15:13: note: T* Upp::Copyable<T, B>::PartialCopy() const [with T = Upp::CopyableC<Base, CBase>, B = CBase]
C:\dfm-git-cl\Blate\Blate.cpp:22:19: note: const C& Upp::CopyableC<C, B>::GetC() const [with C = Base, B = CBase]
C:\dfm-git-cl\Blate\Blate.cpp:23:13: note: C& Upp::CopyableC<C, B>::GetC() [with C = Base, B = CBase]
C:\MinGW32\bin\c++.exe -c -I"C:\dfm-git-cl" -I"C:\uppsvn\bazaar" -I"C:\uppsvn\uppsrc" -I"C:\MinGW32\include" -DflagMAIN -DflagGCC -DflagDEBUG -DflagDEBUG_
FULL -DflagBLITZ -DflagWIN32 -DbmYEAR=2010 -DbmMONTH=10 -DbmDAY=15 -DbmHOUR=16 -DbmMINUTE=2 -DbmSECOND=31 -g2 -static -fexceptions -D_DEBUG -O0 -gst
abs -x c++ "C:\dfm-git-cl\Blate\Blate.cpp" -o "C:/uppsvn/out/Blate/TDM451.Debug.Debug_full.Main\Blate.o"
Blate: 1 file(s) built in (0:00.93), 937 msecs / file, duration = 969 msecs, parallelization 0%
Error executing C:\MinGW32\bin\c++.exe -c -I"C:\dfm-git-cl" -I"C:\uppsvn\bazaar" -I"C:\uppsvn\uppsrc" -I"C:\MinGW32\include" -DflagMAIN -DflagGCC -DflagDE
BUG -DflagDEBUG_FULL -DflagBLITZ -DflagWIN32 -DbmYEAR=2010 -DbmMONTH=10 -DbmDAY=15 -DbmHOUR=16 -DbmMINUTE=2 -DbmSECOND=31 -g2 -static -fexceptions -
D_DEBUG -O0 -gstabs -x c++ "C:\dfm-git-cl\Blate\Blate.cpp" -o "C:/uppsvn/out/Blate/TDM451.Debug.Debug_full.Main\Blate.o"

There were errors. (0:01.18)

[Updated on: Fri, 15 October 2010 16:00]

Report message to a moderator

 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PROPOSAL: SerializeStore helper
Next Topic: Value: no deep copy support?
Goto Forum:
  


Current Time: Mon Jun 10 18:31:28 CEST 2024

Total time taken to generate the page: 0.02336 seconds