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 » Community » Newbie corner » link error with MINGW - - SOLVED
link error with MINGW - - SOLVED [message #46359] Wed, 27 April 2016 07:36 Go to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
error: could not convert 'daa' from 'Upp::String' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'


This error when trying to compile with MINGW

I can compile this app with MSC15 without this link error.

apparently this is with c++ 11 but what is the difference between MINGW and MSC15 compiler?

this is with upp 9701 U++ for Windows with MinGW-w64 toolchain

[Updated on: Thu, 05 May 2016 09:17]

Report message to a moderator

Re: link error with MINGW [message #46360 is a reply to message #46359] Wed, 27 April 2016 08:51 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3354
Registered: August 2008
Senior Veteran
Hello Neil

Where do you get that error? In case it is your own code, could you post the code line that produce the error?


Best regards
IƱaki
Re: link error with MINGW [message #46361 is a reply to message #46360] Wed, 27 April 2016 09:48 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Koldo

here are two lines
daa=FormatDouble(s,dp)+","+FormatDouble(aIn,dp)+","+FormatDouble(aFn,dp);
}return daa;
Re: link error with MINGW [message #46362 is a reply to message #46361] Wed, 27 April 2016 13:46 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 526
Registered: March 2007
Contributor
nlneilson:

It seemed you have declared variable daa as a std::string instead of a Upp::String.

daa=FormatDouble(s,dp)+","+FormatDouble(aIn,dp)+","+FormatDouble(aFn,dp);	


Right hand evaluates to a Upp::String, from provided error message, it's not what's causing the problem. So the error must be from the assignment to daa where a type mismatch occurred.


I would change daa's type to Upp::String.

Re: link error with MINGW [message #46363 is a reply to message #46362] Thu, 28 April 2016 09:52 Go to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
changed String to string --- cap S to small s

that worked

[Updated on: Thu, 28 April 2016 09:53]

Report message to a moderator

Previous Topic: always on top SOLVED
Next Topic: Change name of project
Goto Forum:
  


Current Time: Thu Mar 28 10:02:48 CET 2024

Total time taken to generate the page: 0.01772 seconds