If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > compilation error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-08, 05:46
SmithaIVR SmithaIVR is offline
Registered User
 
Join Date: Dec 2008
Posts: 4
Question compilation error

Hi,

I am getting following error while compiling C code which is using informix libraries:
gl_get_ltime_fmts /opt/informx7/lib/esql/libgen.a(gdtfmt.o)
gl_cv_outbuflen /opt/informx7/lib/esql/libsql.a(iqfetch.o)
gl_full_charoffset /opt/informx7/lib/esql/libsql.a(iqinsert.o)
gl_lc_pieces2lc_spec /opt/informx7/lib/esql/libgen.a(initgls.o)
ld: fatal: Symbol referencing errors. No output written to saw1
make: *** exit code 1 making saw1

Can someone tell me what could be the problem here and how can I rectify it?

Thanks,
Smitha
Reply With Quote
  #2 (permalink)  
Old 12-08-08, 12:06
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
Give us some more details.
CSDK Version?
Platform?
Compiler?
Also post output of esqlc command (with -v option)
Regards
Reply With Quote
  #3 (permalink)  
Old 12-09-08, 03:06
SmithaIVR SmithaIVR is offline
Registered User
 
Join Date: Dec 2008
Posts: 4
Hi,

Compiler :cc
Platform : SunOS dast1 5.8 Generic_117350-46 sun4u sparc SUNW,Ultra-Enterprise
esql -v gives:

Undefined first referenced
symbol in file
main /opt/SUNWspro/SC5.0/lib/crt1.o
ld: fatal: Symbol referencing errors. No output written to a.out

esql -V gives:
IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC3
Software Serial Number RDS#N000000

Let me know in case any other info will help to figure out the problem.

Thanks,
Smitha
Reply With Quote
  #4 (permalink)  
Old 12-09-08, 03:23
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
What I mean is compile your program with -v option and post output.
Reply With Quote
  #5 (permalink)  
Old 12-10-08, 01:28
SmithaIVR SmithaIVR is offline
Registered User
 
Join Date: Dec 2008
Posts: 4
Question Linker error:Undefined symbol

Hi,


I was able to resolve the earlier error just by including path of those informix7 libraries in my Makefile. Thanks for giving me some pointer which really helped to solve earlier error.
But now I am getting these errors related to some X windows system libraries. Even if I include these files in Makefile and copy these into current directory, on compiling it gives following linker errors:


Undefined first referenced
symbol in file
XwtexteditWidgetClass /project/abm/r8.0/lib/xultk.a(XuHelp.o)
XwTextClearBuffer /project/abm/r8.0/lib/xultk.a(XuHelp.o)
XwTextInsert /project/abm/r8.0/lib/xultk.a(XuHelp.o)
XwmenubuttonWidgetClass /project/abm/r8.0/lib/libXw.a(Primitive.o)
ld: fatal: Symbol referencing errors. No output written to saw
make: *** exit code 1 making saw

Please help me resolve these.

Thanks,

Smitha
Reply With Quote
  #6 (permalink)  
Old 12-10-08, 02:41
ibm.ids ibm.ids is offline
Registered User
 
Join Date: Nov 2008
Posts: 64
This is quite similar problem: your linker can't find some functions (i.e. libraries with compiled code of these functions). I never wrote X windows program, but I suppose you'll have to add some more "-l" options to your makefile.
HTH
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On