top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How do I configure google test framework to work on a 64 bit linux machine?

+3 votes
1,791 views

When I configure my google test framework for a 32 bit machine, I can run all my test cases successfully with no unpredictable behavior. But when I configure it for a 64 bit machine & run my test cases, it gives severe & abrupt crashes. It crashes in places where it is not supposed to. I tried debugging the issue but was out of my depths. I am not sure if there is a problem while configuring the google test framework for 64 bit or maybe it does not support 64 bit. Any help would be appreciated. Please feel free to get in touch if any clarity is required regarding the query I have shared.
Note : The same code base works perfect on a 32 bit machine.

posted Oct 3, 2014 by Ankush Surelia

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Are you talking about google robot frame test framework
Not sure what you tried byt I cross checked the documentation at https://code.google.com/p/googletest/wiki/FAQ and https://code.google.com/p/googletest/wiki/AdvancedGuide its nowhere talking about 32bit/64bit so we can assume that we have the support of 64bit also.

I am not sure about the google test framework on 64bit but in gcc/g++ we need to add -m64 in the compilation to generate the 64bit comparable binary. Just cross check or provide more info????
No Ankur. I am speaking about Google C++ Test Frame Work
Yes I have compiled using -m64 . When compiling on 64 bit, the gtest_main.o & gtest_main.a files also say ELF 64. Likewise it says ELF32 when compiling on 32 bit machine. The only problem I am facing is that I can run my test case successfully on 32 bit machine but NOT on 64 bit machine. So I had a doubt that maybe I missed something during compilation but I cross checked it and it is correct.  So gtest supports 64 bit too. But it has an unpredictable run time behavior. If anyone has used gtest frame work on 64 bit machine successfully, please step forward.
Thanks
Dont know about the gtest and don't have access to your system so difficult to comment from here the only thing which can I suggest is that this type of behavior is seen only if compilation is not correct. Cross check your linking options too.

Similar Questions
+4 votes

I want to configure CVS on linux machine to maintain history and revision of files.

+1 vote

I want to upgrade my Linux box from Debian Jessie (32bit) to Debian Jessie (64bit). For the transition time, the machine will boot alternating the 32bit and the 64bit OS.

I have several SVN repositories and working copies on it. Is it safe to share SVN repositories and working copies between 32bit and 64 bit?

+2 votes

I'm having an issue getting a C6.6 install to work on a 3 TB dual hard drive system, raid 0. I'm hoping that someone here can help.

So, I install as normal, but then reboot, and it comes to a grub prompt. Going into the system via Linux rescue, I see that most of the files dealing with the kernel haven't been installed.

I asked the maker of the server and he said that they have noticed this happen recently. A solution is to put the kernel files on a thumb drive, and then point the OS to look for them there.

I have yet to try it, but is there a better way to deal with this issue that anyone else has done?

+5 votes
...