05-20-2012
You are missing a couple of libraries and two other ones are 64-bit while you are compiling in 32-bit mode. You can't mix 32 and 64 bit code.
Remove all objects you built (likely "make clean") then add -m64 to the compiler options.
10 More Discussions You Might Find Interesting
1. Solaris
I get the following error when running /usr/bin/ps on Solaris 10 as a particular non-privileged user:
ld.so.1: ps: fatal: /usr/dt/lib/libXm.so.3: wrong ELF class: ELFCLASS32
Killed
However I can run /usr/bin/ps successfuly as root or as any other non-privileged user. What could it be about this... (5 Replies)
Discussion started by: aussieos
5 Replies
2. UNIX for Dummies Questions & Answers
im just trying to have some fun and kill some time writing a c++ program that has a person type in a car make and model then gives them a year and a price. or something like that. i always have problems getting it goin but once the ball is rolling im usually pretty good. anyone wanna help me out? ... (1 Reply)
Discussion started by: rickym2626
1 Replies
3. Programming
Hi, i have a question about C++. Is it possible to declare a class with a member ot the same class? For example, a linked list or i want to convert this C code to C++ class (Elemento)
typedef struct elemento
{
char name;
char value;
List<struct elemento> ltElementos;
... (7 Replies)
Discussion started by: pogdorica
7 Replies
4. Solaris
We are trying to install our project on solaris 10 x86 machine. we are getting the following error.
Can't load '/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so' for module DBI: ld.so.1: perl: fatal:
/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so: wrong ELF data... (3 Replies)
Discussion started by: Jagandadi
3 Replies
5. Programming
Hi,
I believe the next code is wrong:
class Egg {
Egg e;
int i;
Egg(int ii=0) : i(ii) {}
};
because you would end up with an endless definition (memory allocation) of Egg objects, thus int i.
Ok, so God Eckel proposes for a singleton:
class Egg {
static Egg e;
int... (5 Replies)
Discussion started by: xavipoes
5 Replies
6. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
7. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
8. Programming
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies
9. Programming
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Discussion started by: anand.shah
2 Replies
10. Solaris
I am following the "Compilling and Installing" guide from Apache > HTTP Server > Documentation > Version 2.4 page
The configure running OK:
# export CC="gcc -m64"
# ./configure \
--prefix=/usr/local/apache2/httpd-2.4.20 \
--with-port=80 \
--with-mpm=worker \
--enable-mods-shared=most \... (0 Replies)
Discussion started by: jhuang
0 Replies
LEARN ABOUT NETBSD
elf64_getshdr
GELF_GETSHDR(3) BSD Library Functions Manual GELF_GETSHDR(3)
NAME
elf32_getshdr, elf64_getshdr, gelf_getshdr -- retrieve the class-dependent section header
LIBRARY
ELF Access Library (libelf, -lelf)
SYNOPSIS
#include <libelf.h>
Elf32_Shdr *
elf32_getshdr(Elf_Scn *scn);
Elf64_Shdr *
elf64_getshdr(Elf_Scn *scn);
#include <gelf.h>
GElf_Shdr *
gelf_getshdr(Elf_Scn *scn, GElf_Shdr *shdr);
DESCRIPTION
These functions return a pointer to the ELF Section Header data structure associated with section descriptor scn.
Function elf32_getshdr() retrieves a pointer to an Elf32_Shdr structure. Section descriptor scn must be associated with an ELF descriptor of
class ELFCLASS32.
Function elf64_getshdr() retrieves a pointer to an Elf64_Shdr structure. Section descriptor scn must be associated with an ELF descriptor of
class ELFCLASS64.
Function gelf_getshdr() copies the values in the section header associated with argument scn to the structure pointed to be argument dst.
The GElf_Shdr data structure is described in gelf(3).
RETURN VALUES
Functions elf32_getshdr() and elf64_getshdr() return a valid pointer to the appropriate section header on success or NULL if an error was
encountered.
Function gelf_getshdr() returns argument dst if successful, or NULL if an error was encountered.
ERRORS
These functions may fail with the following errors:
[ELF_E_ARGUMENT] Arguments scn or shdr were NULL.
[ELF_E_ARGUMENT] Argument scn was not associated a descriptor for an ELF object.
[ELF_E_CLASS] The ELF class associated with the section descriptor scn did not match the class expected by the API.
SEE ALSO
elf(3), elf_getscn(3), gelf(3), gelf_update_shdr(3)
BSD
August 27, 2006 BSD