Hi!
I'm installing a tcltk program that requires a C program as a shared library.
When I compile it with
gcc -shared -fPIC -o name.os name.o
I get the following:
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateObjCommand
ld: 0711-317 ERROR: Undefined symbol: .Tcl_PkgProvide
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetObjResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewDoubleObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_ListObjAppendElement
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewIntObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetObjResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetStringFromObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetDoubleFromObj
ld: 0711-317 ERROR: Undefined symbol: .cos
ld: 0711-317 ERROR: Undefined symbol: .sin
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
What am I doing wrong?
Thanks for your help,
Pinki Pons
pinkipons@hotmail.com
I'm installing a tcltk program that requires a C program as a shared library.
When I compile it with
gcc -shared -fPIC -o name.os name.o
I get the following:
ld: 0711-317 ERROR: Undefined symbol: .Tcl_CreateObjCommand
ld: 0711-317 ERROR: Undefined symbol: .Tcl_PkgProvide
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetObjResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewDoubleObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_ListObjAppendElement
ld: 0711-317 ERROR: Undefined symbol: .Tcl_NewIntObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_SetObjResult
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetStringFromObj
ld: 0711-317 ERROR: Undefined symbol: .Tcl_GetDoubleFromObj
ld: 0711-317 ERROR: Undefined symbol: .cos
ld: 0711-317 ERROR: Undefined symbol: .sin
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
What am I doing wrong?
Thanks for your help,
Pinki Pons
pinkipons@hotmail.com