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...
Show off your group to the world. Share a photo of your group with us.

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 #2394 of 2479 |
Re: compiling on ubuntu with gcc 4.2.1

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:
http://tech.groups.yahoo.com/group/DatabaseTemplateLibrary/files/DTL36/

and is labelled DTL 3.6.11.

Tests seem to run OK under linux. Once I finish running under windows
/ visual C++ I will go ahead and release this (probably next week).

Corwin


--- In DatabaseTemplateLibrary@yahoogroups.com, "Corwin Joy"
<corwinjoy@...> wrote:
>
> 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 functions inside of a template. The lines you are
> getting this error for look like:
>
> setstate(this->badbit)
>
> change them to
> this->setstate(this->badbit)
>
> and the error will go away.
> I got a couple other minor syntax errors related to the fact that I am
> running a 64 bit version so that I needed to change SetStmtAttrs to
> take a SQLPointer for the 2nd argument (the value argument) rather
> than SDWORD which is what I had previously. I will try to post a
> minor release with these changes next week since there have been a
> couple questions on the forum about running DTL under 64bit linux.
>
> Corwin
>
> --- In DatabaseTemplateLibrary@yahoogroups.com, "buschnick"
> <Soeren.Meyer-Eppler@> wrote:
> >
> > 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
> >
>





Thu May 15, 2008 10:21 pm

corwinjoy
Offline Offline
Send Email Send Email

Forward
Message #2394 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