Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
compiling on ubuntu with gcc 4.2.1   Message List  
Reply | Forward Message #2392 of 2479 |
This is a repost since my first message two weeks ago seems to have
been swallowed by the moderation queue or something.

I'm trying to compile the DTL 3.6.10 on ubuntu linux with gcc 4.2.1 (I
have tried several older versions as well). The process chokes on two
errors though. The first one was easy enough to fix, it was just a
repetition of the classname in a function declaration in a header.
Something that AFAIK is simply redundant but legal C++.

However, the second error completely baffles me as the error message
doesn't seem to have anything to do with reality. gcc complains it
cannot convert parameter one from int to char * for function "char *
setstate( char *)". This is _not_ the function declaration from the
dtl headers, but a global function from cstdlib or math. So it seems
gcc is messing up the name lookup or something and finds an incorrect
function declaration. If I rename the dtl's setstate method to
setstate_dtl the error changes to something else, indicating that gcc
indeed can't find the method declaration at all. The necessary header
"DB_base.h" is included though.

Question: did anyone else run into this problem? How can I fix this?
It is quite important for us to get a linux build of our product
working and the dtl is the last thing stopping us... So thank you for
any tips/pointers.

regards,

Sören





Mon May 5, 2008 11:30 am

buschnick
Offline Offline
Send Email Send Email

Forward
Message #2392 of 2479 |
Expand Messages Author Sort by Date

This is a repost since my first message two weeks ago seems to have been swallowed by the moderation queue or something. I'm trying to compile the DTL 3.6.10...
buschnick
Offline Send Email
May 15, 2008
7:39 pm

Hi, I went ahead and had a go compiling DTL under gcc 4.1.2 on redhat linux and got the same error. This is just gcc being stupid and not recognizing member...
Corwin Joy
corwinjoy
Offline Send Email
May 15, 2008
9:00 pm

I have added a pre-release of 3.6.11 which fixes the latest gcc 4.1.2 compile errors you mentioned. It can be found at: ...
Corwin Joy
corwinjoy
Offline Send Email
May 15, 2008
10:21 pm

... Thank you. I now have the following compile error on MSVC2008: 1>r:\dtl_3_6_11\lib\variant_row.cpp(1135) : error C2440: 'static_cast' ... 1>...
buschnick
Offline Send Email
May 19, 2008
5:38 pm

... Yeah, in the latest changes I commented out the ODBCINT64 support in variant_t because it resolved to long int under 64 bit which conflicted with the...
Corwin Joy
corwinjoy
Offline Send Email
May 19, 2008
5:43 pm

Sören, I have added a new version of 3.6.11 in the files section which now compiles on both gcc and visual C++ and resolves the ODBCINT64 issue in a better...
Corwin Joy
corwinjoy
Offline Send Email
May 21, 2008
4:36 pm

I have released 3.6.11. Version 3.6.11; Released May 22, 2008 ***Bugfixes*** 1. Minor changes to compile under gcc 4.1.2. 2. Minor changes to compile under 64...
Corwin Joy
corwinjoy
Offline Send Email
May 23, 2008
5:30 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help