C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 8th, 2005, 12:03 AM
ssk ssk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 ssk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 20 sec
Reputation Power: 0
Compilation error..

Hi all ,

I was trying to run one distribution, but came across some compilation problem. I'm using fedora core 2, and g++ (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7) compiler. When tried to "make" the exe files, the followwing error msg was seen. Plz suggest what I should do for the program to call the floor() function defined in math.h ? I tried adding including math.h, but it did not work. I am getting the same error again. Typecasting the arguements to double in the CPP program also did not work. Please give ur suggestions. I'm attaching the archived programs also.

/*
* This is the error mesage obtained from console
*


g++ -O3 -c RBFCFTree.cpp
RBFCFTree.cpp: In member function `void
RBFCFTree::extensionExplore(std::vector<long int, std::allocator<long int>
>&, std:stream&, const std::vector<RFreeTree*, std::allocator<RFreeTree*>
>&, const std::vector<Occurrence, std::allocator<Occurrence> >&, const
std::vector<std::vector<short int, std::allocator<short int> >,
std::allocator<std::vector<short int, std::allocator<short int> > > >&,
const std::vector<long int, std::allocator<long int> >&, const long int&)':
RBFCFTree.cpp:685: error: call of overloaded `floor(long int)' is ambiguous
/usr/include/bits/mathinline.h:499: error: candidates are: double floor(double)
/usr/include/c++/3.3.3/cmath:342: error: long double
std::floor(long double)
/usr/include/c++/3.3.3/cmath:334: error: float
std::floor(float)
make: *** [RBFCFTree.o] Error 1

*
*
*/

Regards

Ssk

Reply With Quote
  #2  
Old February 8th, 2005, 12:05 AM
ssk ssk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 ssk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 20 sec
Reputation Power: 0
Re: Compilation error

This is the archive of programs I was trying to make.. Thanks a lot for your time.
Attached Files
File Type: zip HybridTreeMiner_Rooted.tgz.zip (15.5 KB, 337 views)

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Compilation error..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway