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 » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Distance - geodesic - Vincenty - very accurate
Re: Distance - geodesic - Vincenty - very accurate [message #25975 is a reply to message #25974] Mon, 22 March 2010 22:24 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
nlneilson wrote on Mon, 22 March 2010 22:20

Didier wrote on Sat, 20 March 2010 22:29

But why not publish a linux version ...?

I was able to get Upp/theIDE to run in Ubuntu 10.04b.
Trying to make a linux version of Distance.exe the first error was re #include <windows.h>, just commented that and here is an excerpt of the errors:
 error: call of overloaded ‘abs(double)’ is am
	biguous
/usr/include/stdlib.h:766: note: candidates are: int abs(int)
/home/neil/upp/uppsrc/Core/Core.h:300: note:                 Upp::int64 abs(Upp::int64)
/usr/include/c++/4.4/cstdlib:170: note:                 long long int __gnu_cxx::abs(long 
	long int)
/usr/include/c++/4.4/cstdlib:139: note:                 long int std::abs(long int)
/home/neil/MyApps/Distance/VincFormula.h: In function ‘std::string 

It make take some time but I will try to get a Linux version that will run without Wine.

Hello nlnelson

In Gcc (linux and MinGW) you would have to use fabs() instead of abs() to avoid this error.

You can filter this errors compiling with MinGW in Windows.


Best regards
Iñaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Google Translator
Next Topic: How to load dll
Goto Forum:
  


Current Time: Sat Apr 27 12:59:26 CEST 2024

Total time taken to generate the page: 0.06173 seconds