Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~7K People Reached
Favorite Tags
c++ x 30
php x 1
Member Avatar for rmlopes

Hi everyone I've been looking into boost and c++ reference, as well as some googling, and I cannot find a way to get a thread's execution time, all options I found are related to system time and I need only the execution time for the thread (inside the thread's context). …

Member Avatar for JohnDiego
0
5K
Member Avatar for rmlopes

Hi everybody, I am having some problems with a multi-threaded application I am developing. I get segmentation faults in different places, always related to std::string, using g++4.3.2 on Ubuntu 8.10 server. Here is an example: [icode] #0 0xb7e18bb6 in memcpy () from /lib/tls/i686/cmov/libc.so.6 (gdb) up #1 0xa8eb1014 in ?? () …

Member Avatar for ganbree
0
159
Member Avatar for rmlopes

Hello, I am developing a library, which untill a few days ago was working perfectly. With some changes I needed to perform I started having a segmentation fault. The problem is that I cannot understand why the fault is happening since the conclusion from gdb is the following: [code] Program …

Member Avatar for rmlopes
0
154
Member Avatar for rmlopes

Hi all, I am new to threads in c++, and I must use the pthread library. The documentation is easy to understand, but there is a more general aspect that I am missing. My question is: Is it possible to give a pointer to an object's function as argument to …

Member Avatar for rmlopes
0
115
Member Avatar for rmlopes

Hello, I developed an application in VC++ an now I want to compile it using GNU++ to be run on a ubuntu server (where I am actually trying tocompile it). After some syntax/usage corrections I get an error which I totally don't understand (and I don't have it in VC++, …

Member Avatar for rmlopes
0
119
Member Avatar for rmlopes

Hello I have a web application developed with php, using the Zend Framework. This application has a page that launches an external, C++, application. I was trying to do this using proc_open to start the job in background mode, save the handler to keep track of the process that will …

0
88
Member Avatar for rmlopes

Hello all, I am trying to use the #if directive to compile extra functionality acording to some class template parameter defined integer constant. What I want to do is this: [code=cpp] struct A1{ static const int _AINT = 0; }; struct A2{ static const int _AINT = 1; }; template< …

Member Avatar for siddhant3s
0
209
Member Avatar for rmlopes

Hello all, Before anything else, this issue is also posted at: [url]http://www.cplusplus.com/forum/general/7518/[/url] I have a structure similar to the one below.I miss a lot of information about the specific template parameters, so I would need something like what is in the code. This code does not compile because we cannot …

Member Avatar for rmlopes
0
147
Member Avatar for rmlopes

Hello all, I am using VS2008 and I have a solution with 3 projects. One is the Loki library, another one is a library designed by me and the other is a small application that uses a part of my library. The Loki project is a static library. Mine is …

0
88
Member Avatar for rmlopes

Hello, I implemented the follolwing function: [code] template< int n > struct GetNRands{ static void fillVector( set<int>& v, int max ){ if( n > 0 ){ int f; int pos; do{ f = rand(); pos = f * max / RAND_MAX; } while( v.find( f ) != v.end()); v.insert( pos …

Member Avatar for ArkM
0
132
Member Avatar for rmlopes

Hi all, I was developing my app under Linux, using the Loki library. No I am trying to work on it using visual c++ under windows XP. I can compile without errors both my project and the loki library, which created a loki_D.lib. I include this .lib through the makefile. …

Member Avatar for rmlopes
0
190
Member Avatar for rmlopes

Hello all, I am trying to templatize a class with a Typelist. Until here everything good. But I cannoyt create a Typelist to define the templated class. The following model reproduces the problem: [code] template< class TL > class A { A(){} }; int main(void){ typedef Loki::DefaultSPStorage< std::vector<int> > AStorage; …

Member Avatar for rmlopes
0
229
Member Avatar for rmlopes

Hello, I am writing an application that uses the Loki library and I get undefined references inside loki if I use the DefaultSPStorage with std::vector<int> (it happens the same with int or using HeapStorage instead). I am developing on Mandriva 2008. Can someone please help me? Thank you in advance …

Member Avatar for rmlopes
0
214