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 » Community » Coffee corner » upp and boost - t_
upp and boost - t_ [message #3883] Thu, 06 July 2006 09:50 Go to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
Boost uses 't_' for templates somewhere. So be warn of it, when errors with 't_' occurs, and you get somthing with 't_GetLngString' in boost libs Smile
Re: upp and boost - t_ [message #3885 is a reply to message #3883] Thu, 06 July 2006 13:13 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
...renamed all 't_' in upp sources including named one file. If somebody knows common solution, feel free to drop a note.
Re: upp and boost - t_ [message #3886 is a reply to message #3885] Thu, 06 July 2006 14:43 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

qwerty wrote on Thu, 06 July 2006 07:13

...renamed all 't_' in upp sources including named one file. If somebody knows common solution, feel free to drop a note.


I don't use boost but wouldn't be enough to include boost.h before any of upp include??

Re: upp and boost - t_ [message #3900 is a reply to message #3886] Fri, 07 July 2006 08:09 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
...hmm,this wouldn't get onto my mind... I'll try, thanx...
Re: upp and boost - t_ [message #4533 is a reply to message #3900] Mon, 14 August 2006 17:24 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
yes, as you said
Re: upp and boost - t_ [message #5930 is a reply to message #3883] Wed, 25 October 2006 14:39 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
Could you please spend some time in giving us some hints how you managed to inlclude boost in your upp project?

I keep getting lib not found errors.

Thanks
Re: upp and boost - t_ [message #6640 is a reply to message #5930] Tue, 21 November 2006 12:06 Go to previous messageGo to next message
qwerty is currently offline  qwerty
Messages: 130
Registered: May 2006
Experienced Member
it was really as unodgs said.
I've included needed .h boost before any upp .h

I am programming under linux environment and using various libraries.

was it helpfull?? if not, keep asking Smile

[Updated on: Tue, 21 November 2006 12:06]

Report message to a moderator

Re: upp and boost - t_ [message #6644 is a reply to message #6640] Tue, 21 November 2006 15:30 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
Thanks but it did not help

here is the error:

Linking...
\mingw\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lC:\Dev-Cpp\include\boost\bin\boost\libs\filesystem\build\l ibboost_filesystem.lib\mingw\release\runtime-link-static\lib boost_filesystem-mgw-s-1_33_1.lib
Re: upp and boost - t_ [message #6645 is a reply to message #6644] Tue, 21 November 2006 15:43 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
I noticed a difference between Dev-Cpp and U++.

Dev-Cpp uses g++ to compile the project and U++ uses c++ to compile , ringing any bells?
Re: upp and boost - t_ [message #6646 is a reply to message #6644] Tue, 21 November 2006 16:17 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
If this is the exact copy, there is strange space (*):

lib(*)boost_filesystem-mgw-s-1_33_1.lib

Would you mind posting your .upp (that is in package) and .bm (build method definition - in TheIDE directory) files?

(Note: That space can be some obscure U++ bug as well, not necessarily a bug in your setup. But I would like to see the files anyway).

Mirek
Re: upp and boost - t_ [message #6647 is a reply to message #6646] Tue, 21 November 2006 16:27 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
Here is what I did again!

1) extracted boost in "Myapps"
2) Set MINGW_ROOT to UPP\mingw
3) bjam "-sTOOLS=mingw" install
4) -lC:\Boost\lib\boost_filesystem-mgw-1_33_1.dll

And ....it linked!!

Now I have to try to use it.

The difference is that the first time I used the Dev-Cpp mingw to build boost. I do not understand why it linked fine now.

With the previous build I had no dlls only lib files.

Anyway, I will now try to use some boost functionality and let you know.

I really appreciate your effort and help. Thank you very much.
Re: upp and boost - t_ [message #6677 is a reply to message #6647] Wed, 22 November 2006 15:00 Go to previous messageGo to next message
cioannou is currently offline  cioannou
Messages: 45
Registered: January 2006
Location: Greece
Member
Unfortunately it links but it does not run.

http://img329.imageshack.us/img329/4830/failedupppd1.jpg

[Updated on: Wed, 22 November 2006 15:01]

Report message to a moderator

Re: upp and boost - t_ [message #7022 is a reply to message #3883] Fri, 08 December 2006 08:51 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
I can compile and link with boost library.
I cannot use blitz mode, since compiler will compain about 't_G' something.
Any solution working with blitz mode?

My project is GUI wrapper for existing application.
My test was, create a GUI and just add old source code that use boost library to the project and compile.
At the GUI part i still not use the old code, just template.
Re: upp and boost - t_ [message #7024 is a reply to message #7022] Fri, 08 December 2006 09:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mobilehunter wrote on Fri, 08 December 2006 02:51

I can compile and link with boost library.
I cannot use blitz mode, since compiler will compain about 't_G' something.
Any solution working with blitz mode?



I am not sure in what mode are you using boost? Linked library?

Mirek
Re: upp and boost - t_ [message #7030 is a reply to message #7024] Fri, 08 December 2006 10:59 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
luzr wrote on Fri, 08 December 2006 17:20

mobilehunter wrote on Fri, 08 December 2006 02:51

I can compile and link with boost library.
I cannot use blitz mode, since compiler will compain about 't_G' something.
Any solution working with blitz mode?



I am not sure in what mode are you using boost? Linked library?

Mirek


My link mode option is 'Use shared libs'.

[Updated on: Fri, 08 December 2006 11:00]

Report message to a moderator

Re: upp and boost - t_ [message #7034 is a reply to message #7030] Fri, 08 December 2006 11:21 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mobilehunter wrote on Fri, 08 December 2006 04:59

luzr wrote on Fri, 08 December 2006 17:20

mobilehunter wrote on Fri, 08 December 2006 02:51

I can compile and link with boost library.
I cannot use blitz mode, since compiler will compain about 't_G' something.
Any solution working with blitz mode?



I am not sure in what mode are you using boost? Linked library?

Mirek


My link mode option is 'Use shared libs'.


Ah, I meant whether you are trying to compile as sources in TheIDE, or just put .so in the project.. (looks like second option).

Well, I guess 't_*' name clash was mentioned before. Maybe it is not that hard to avoid this clash in U++. Adding to list Wink

Mirek
Re: upp and boost - t_ [message #7035 is a reply to message #7034] Fri, 08 December 2006 11:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
BTW, can you add *exact* error messages you got? (copy->paste)

Mirek
Re: upp and boost - t_ [message #7067 is a reply to message #7035] Mon, 11 December 2006 06:30 Go to previous messageGo to next message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
I just linking against boost, i got the compiled library which complied by VS.Net 2003.
Here are the error descriptions.

include\boost\bind.hpp(95) : error C2614: 'boost::_bi::value<T>' : illegal member initialization: 't_GetLngString' 
is not a base or member

with
[
	T=ChainBox *
]
include\boost\bind.hpp(95) : while compiling class-template member function 'boost::_bi::value<T>::value(const T & )'
with
[
	T=ChainBox *
]
include\boost\bind.hpp(249) : see reference to class template instantiation 'boost::_bi::value<T>' being compiled
with
[
	T=ChainBox *
]
include\boost\bind\bind_template.hpp(161) : see reference to class template instantiation 'boost::_bi::list1<A1>' 
being compiled
with
[
	A1=boost::_bi::list_av_1<ChainBox *>::B1
]
G:\MyApps\Main\ChainBox.cpp(74) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' 
being compiled
with
[
	R=void,
	F=boost::_mfi::mf0<void,ChainBox>,
	L=boost::_bi::list1<boost::_bi::list_av_1<ChainBox *>::B1>
]
Re: upp and boost - t_ [message #7069 is a reply to message #7067] Mon, 11 December 2006 09:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hm, seems I will have to install the boost after all.. Smile

What is in ChainBox?

Mirek
Re: upp and boost - t_ [message #7077 is a reply to message #7069] Tue, 12 December 2006 02:48 Go to previous message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
luzr wrote on Mon, 11 December 2006 17:23

Hm, seems I will have to install the boost after all.. Smile

What is in ChainBox?

Mirek


Inside ChainBox class i do this from member function
mThread = new boost::thread(boost::bind(&ChainBox::startChain,this));

If i commented that line everything is ok.
Another thing i found is, after i commented, the compilation works, but when i uncommented back. why the compilation result still ok? But if i do rebuild all the boost error message will show.
Previous Topic: I would like to know - are those anonymous visitors human lurkers or web spider robots?
Next Topic: Start a new project on Ultimate++?
Goto Forum:
  


Current Time: Thu Mar 28 18:56:54 CET 2024

Total time taken to generate the page: 0.02189 seconds