I am getting the following error message during compilation of my C++ program on XP laptop using .NET libraries:
ossxerces_utils .cxx
C:\narayan\axce lis\Lib\ossxerc es_utils\src\Os sDataFileTempla te.cxx(122) : error
C2582: 'operator =' function is unavailable in 'std::basic_ofs tream<_Elem,_Tr ait
s>'
with
[
_Elem=char,
_Traits=std::ch ar_traits<char>
]
C:\narayan\axce lis\Lib\ossxerc es_utils\src\Os sDataFileTempla te.cxx(304) : error
C2440: 'return' : cannot convert from 'std::_Ptrit<_T y,_Diff,_Pointe r,_Reference
,_Pointer2,_Ref erence2>::_Myt' to 'OssDataTag *'
with
[
_Ty=std::vector <OssDataTag,std ::allocator<Oss DataTag>>::valu e_type,
_Diff=std::vect or<OssDataTag,s td::allocator<O ssDataTag>>::di fference
_type,
_Pointer=std::v ector<OssDataTa g,std::allocato r<OssDataTag>>: :_Tptr,
_Reference=std: :vector<OssData Tag,std::alloca tor<OssDataTag> >::refer
ence,
_Pointer2=std:: vector<OssDataT ag,std::allocat or<OssDataTag>> ::_Tptr,
_Reference2=std ::vector<OssDat aTag,std::alloc ator<OssDataTag >>::refe
rence
]
No user-defined-conversion operator available that can perform this conv
ersion, or the operator cannot be called
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
"ANY HELP HIGHLY APPRECIATED" 1 1924
"mn04" <an*******@disc ussions.microso ft.com> wrote I am getting the following error message during compilation of my C++
program on XP laptop using .NET libraries: ossxerces_utils .cxx C:\narayan\axce lis\Lib\ossxerc es_utils\src\Os sDataFileTempla te.cxx(122) :
error C2582: 'operator =' function is unavailable in
'std::basic_ofs tream<_Elem,_Tr ait s>' with [ _Elem=char, _Traits=std::ch ar_traits<char> ]
You can't assign to objects of type basic_ofstream. The copy-assignment
operator
cannot be generated because members or bases are not copy-assignable.
What are you trying to do?
C:\narayan\axce lis\Lib\ossxerc es_utils\src\Os sDataFileTempla te.cxx(304) :
error C2440: 'return' : cannot convert from
'std::_Ptrit<_T y,_Diff,_Pointe r,_Reference ,_Pointer2,_Ref erence2>::_Myt' to 'OssDataTag *' with [
_Ty=std::vector <OssDataTag,std ::allocator<Oss DataTag>>::valu e_type,
... ] No user-defined-conversion operator available that can perform
this conv ersion, or the operator cannot be called
Iterators are modelled after pointers. But they need not be pointers. VC 6
uses
pointer types for vector iterators. In VC7+ there are distinct types for
iterators.
You should probably use a std::vector<Oss DataTag>::itera tor or
std::vector<Oss DataTag>::const _iterator. If you really want to obtain a
pointer
from an iterator you can still use &*iter. E.g.
std::vector<int > v;
std::vector<int >::iterator i = v.begin(); // OK
int* p = &*v.begin(); // OK
-hg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Danny Boelens |
last post by:
Hi all,
today I ran into a compile error after a compiler upgrade. I made a small
example to demonstrate my compile error:
template<typename T1, typename T2>
class A
{};
class B
|
by: Carmine Cairo |
last post by:
Hi,
I'm working on a project and today I've note a little problem during the
compile fase.
Here a little piece of code:
// 1st version
welldone = 0;
size = p->getSize();
backbone = new rightType;
|
by: Brice Prunier |
last post by:
Here under 4 schemas i'm working with ( it may be long: sorry...)
The context is the following :
Resident.xsd imports Person.xsd and includes Common.xsd ( anonimous schema:
no TargetNamespace )
Person.xsd includes Common-Naming.xsd ( anonimous schemas )
Common-Naming.xsd includes common.xsd ( both are anonimous schemas )
Compilation of Resident.xsd raise the following exception:
"System.Xml.Schema.XmlSchemaException: The attribute 'oid'...
|
by: Chris LaJoie |
last post by:
Our company has been developing a program in C# for some time now, and we
haven't had any problems with it, but just last night something cropped up
that has me, and everyone else, stumped.
I have a struct that contains several different types of data. This struct
is used throuout the program. Now, when I compile, I get 6 errors, all of
them "Use of possibly unassigned field 'awayTime'" or "Use of possibly
unassigned field 'intlTime'"....
|
by: Thomas Connolly |
last post by:
I have 2 pages referencing the same codebehind file in my
project. Originally the pages referenced separate code
behind files. Once I changed the reference to the same
file, everything worked fine while the file was in the
project directory. When the obsolete file was removed
from the project directory, my application will no longer
compile. Can someone please help with this issue?
Thank in advance,
Tom
| |
by: Jim Heavey |
last post by:
Internal Compiler Error: stage 'BEGIN'
Hello, I had an application which was working just fine and I decided to
modify all database access within the application to utilizie a new Namespace
that I had developed which would handle all database access. After I
modified all of the code to point to the new namespace and created all of the
necessary references, I get an internal compile error when I attempt to
re-compile. I have create a new...
|
by: ThunderMusic |
last post by:
Hi,
I'd like to create a compile time error in my class... maybe there's a way
already built in in the framework so I can achieve what I want... I have 2
constructors in my class. One of them has mandatory parameters, I mean, they
should not be null nor empty (for strings). So I'd make the validation in
the constructor and generate a compile-time error if the validation does not
match...
Is there a way to achieve this or to specify...
|
by: tony |
last post by:
Hello!
My question is about calling this method CollectData below but I get a
compile error that I shouldn't have because the type parameter is correct.
The compile error is the following:
C:\PK\Development\Products\UTCAS\4.0\SRC\MeltPracApplication\Dialog\Composit
ionForm.cs(942): Argument '1': cannot convert from 'ref
MeltPracData.MeltPracDataComposition' to 'ref
MeltPracCommon.IDialogPostData'
|
by: wong_powah |
last post by:
#include <vector>
#include <iostream>
using std::cout;
using std::vector;
enum {DATASIZE = 20};
typedef unsigned char data_t;
|
by: BruceWho |
last post by:
I downloaded boost1.35.0 and built it with following command:
bjam --toolset=msvc-7.1 --variant=release --threading=multi --
link=shared --with-system stage
and it failed to compile, error message is:
E:\software\development\boost_1_35_0\boost_1_35_0>bjam --
toolset=msvc-7.1 --variant=release --threading=multi --link=shared --
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |