Well that was easy.
After reading your response I went back and used
gcc -fPIC -c xxx.cc
gcc -shared -o xxx.so xxx.o
and all was well again.

Thanks for your help..again.

Ollie
Dan Nelson said:
> In the last episode (Dec 11), Ollie Gallardo said:
>> I'm back with another question.  I tried to compile my UDF with the
>> gcc on my Opteron system and I got errors.
>> Errors:
>> /usr/lib64/gcc-lib/amd64-mandrake-linux-
gnu/3.3.1/../../../../lib64/crt1.o(.text+0x21):
>> In function `_start':
>> ../sysdeps/x86_64/elf/start.S:92: undefined reference to `main'
>
> What is your gcc line?  The above error indicates that you are trying to
> build an executable.  UDFs must be shared object files.
>
> http://www.mysql.com/doc/en/UDF_compiling.html
>
> --
>       Dan Nelson
>       [EMAIL PROTECTED]
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]


---
Ollie Gallardo
Support Services Inc
2 Professional Dr Ste 212
Gaithersburg MD 20879



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to