Recent Changes - Search:


Code:


Social:


My journals will take the place of a blog. If you go to the Journal page there is an RSS feed to subscribe with.

« July 2017 
SunMonTueWedThuFriSat
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Sites I take responsibility for

West Volusia, Florida

Documents

Technical

General

Me

Living

Places I frequent

Hobbies

Humor

Items for sale:


Clipboard

edit SideBar

Klog patches for 0.4.6

Include our styles below Infobox - invoke as >>infobox<< ... >><<

Codebox: - invoke as >>codebox<< ... >><<

warnbox: - invoke as >>codebox<< ... >><<

editingbox: - invoke as >>codebox<< ... >><<

noticebox: - invoke as >>codebox<< ... >><<

Page bread crumbs: Welcome to ke3vin.org! - Software I Have Written Or Maintain - Patches - K Log - K Log 046

Pages by tags: (:listtags:)
Subscribe to this wiki: RSS Feed RSS or subscribe to this page for changes: RSS Feed RSS
496 articles have been published so far. Recent changes
Share

2016-03-22: This site is being moved to my main site at https://kevininscoe.com/wiki as part of a consolidation to one domain.


gcc:

 gcc version 4.1.2 (Gentoo 4.1.2 p1.3)

errors:

 world.cpp:261: error: call of overloaded 'abs(unsigned int)' is ambiguous
/usr/include/stdlib.h:784: note: candidates are: int abs(int)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:173:
note: long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:143:
note: long int std::abs(long int) world.cpp:422: error: call of overloaded 'abs(unsigned int)' is ambiguous
/usr/include/stdlib.h:784: note: candidates are: int abs(int)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:173:
note: long long int __gnu_cxx::abs(long long int)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/cstdlib:143:
note: long int std::abs(long int)

patches (diff -u):

 --- world.cpp   2009-03-09 17:00:07.000000000 -0400
+++ world.cpp.orig 2009-03-09 07:46:28.000000000 -0400
-258,10 +258,7
}
if (prefixa.contains('/')){
ij = prefixa.find('/');
- int ijtmp; // K. Inscoe 2009-03-09
- ijtmp = prefixa.length()- ij;
-// if ( (abs)(ij) < (abs)((prefixa.length())- ij) ) { //Like in F/EA4TV
- if ( ij < ijtmp ) { //Like in F/EA4TV
+ if ( (abs)(ij) < (abs)((prefixa.length())- ij) ) { //Like in F/EA4TV
prefixab = prefixa.left(ij);
qrz2 = prefixab;
}else{ // Like in EA4TV/F
-422,10 +419,7

}else{
ij = prefixa.find("\\");
- int ijtmp; // K. Inscoe 2009-03-09
- ijtmp = prefixa.length()- ij;
- if ( ij < ijtmp ) { //Like in F/EA4TV
-// if ( (abs)(ij) < (abs)(prefixa.length()-ij ) ) { //Like in F\EA4TV
+ if ( (abs)(ij) < (abs)(prefixa.length()-ij ) ) { //Like in F\EA4TV
prefixab = prefixa.right(prefixa.length() - ij);
qrz2 = prefixab;
}else{// Like in F\EA4TV

Kevin's Public Wiki maintained and created by Kevin P. Inscoe is licensed under a
Creative Commons Attribution 3.0 United States License.

Back to my web site - http://kevininscoe.com

Edit - History - Print - Recent Changes - Search
Page last modified on December 23, 2009, at 01:41 PM EST