public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* FW: Compilation issue on Linux
@ 2003-09-04 12:32 Ajay Bansal
  0 siblings, 0 replies; 2+ messages in thread
From: Ajay Bansal @ 2003-09-04 12:32 UTC (permalink / raw)
  To: gcc-help

 
Ne pointers????

-----Original Message-----
From: Puneet Girdhar [mailto:Puneet_Girdhar@infosys.com] 
Sent: Thursday, September 04, 2003 5:53 PM
To: Ajay Bansal

Ajay,

I got error while compiling following code on Linux Advanced Server 2.1 with
gcc 3.2.1

#include <stdio.h>
#include <dlfcn.h>
#include "sample1.h"

int main()
{
            char dll_name[100];
	void * handle;
	printf("which lib u want to print :");
	scanf("%s",&dll_name);
	printf("%s\n",dll_name);
	handle = dlopen(dll_name,RTLD_LAZY);
	printf("Handle is %x\n",handle);
	if(handle == NULL)
		printf("Error: %s\n",dlerror());
	else
		show_lib_info(handle);
	return 0;
}


I compiled the code using following command on Linux. 
$ gcc -o sample1exe -L. -lsample1 main_sample1.cpp -ldl  

It gave me following error
/tmp/ccuKFwWU.o(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status

Regds
Puneet



^ permalink raw reply	[flat|nested] 2+ messages in thread

* FW: Compilation issue on Linux
@ 2003-09-04 12:32 Ajay Bansal
  0 siblings, 0 replies; 2+ messages in thread
From: Ajay Bansal @ 2003-09-04 12:32 UTC (permalink / raw)
  To: gcc-help

 
Ne pointers????

-----Original Message-----
From: Puneet Girdhar [mailto:Puneet_Girdhar@infosys.com] 
Sent: Thursday, September 04, 2003 5:53 PM
To: Ajay Bansal

Ajay,

I got error while compiling following code on Linux Advanced Server 2.1 with
gcc 3.2.1

#include <stdio.h>
#include <dlfcn.h>
#include "sample1.h"

int main()
{
            char dll_name[100];
	void * handle;
	printf("which lib u want to print :");
	scanf("%s",&dll_name);
	printf("%s\n",dll_name);
	handle = dlopen(dll_name,RTLD_LAZY);
	printf("Handle is %x\n",handle);
	if(handle == NULL)
		printf("Error: %s\n",dlerror());
	else
		show_lib_info(handle);
	return 0;
}


I compiled the code using following command on Linux. 
$ gcc -o sample1exe -L. -lsample1 main_sample1.cpp -ldl  

It gave me following error
/tmp/ccuKFwWU.o(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status

Regds
Puneet



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-04 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 12:32 FW: Compilation issue on Linux Ajay Bansal
2003-09-04 12:32 Ajay Bansal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).