Ld Error Undefined Symbol
Contents |
Topic: Compatibility AIX 6.1 (ld: 0711-317 ERROR: Undefined symbol) 13 replies Latest Post - 2011-05-26T09:19:57Z by RAAZ123 Display:ConversationsBy Date 1-14 of 14 Previous Next undefined symbol math RAAZ123 2700047ES2 9 Posts Pinned topic Compatibility AIX 6.1 (ld: 0711-317 undefined symbol c++ ERROR: Undefined symbol) 2011-05-23T07:54:50Z | Tags: Answered question This question has been answered. Unanswered question This question
Undefined Symbol Error In C
has not been answered yet. Porting an application from AIX 5.1 to AIX 6.1, Where it is building successfully in AIX 5.1. I am getting following errors
Undefined Symbol C++ Runtime
while trying to build the same in 6.1. AIX 6.1 ======= 1) Able to compile and create libraries from C and C++ source code 2) While trying to create a run time executable by using libraries the following error occurs xlC_r -o acbbatch acbbatch.o acbbankserv.o acbbatchmain.o acbdinersclub.o acbmastercard.o acbmoneytransfer.o acbtype.o acbxcept.o acbcats.o -bloadmap:acbbatch.m /nci5d10/prod/c/lib/libti.a /nci5d10/prod/c/lib/libdocxml.a /nci5d10/prod/c/lib/libintxml.a undefined symbol error in turbo c /nci5d10/prod/c/lib/libdatalayer.a /nci5d10/prod/c/lib/libsql.a /nci5d10/prod/c/lib/libshared.a /nci5d10/prod/c/lib/libstatdoc.a /nci5d10/prod/c/lib/libfeeeng.a /oracle/app/oracle/product/11.1.0/lib32/libclntsh.a ld: 0711-224 WARNING: Duplicate symbol: .bcopy ld: 0711-344 See the loadmap file acbbatch.m for more information. ld: 0711-317 ERROR: Undefined symbol: .DOM_NamedNodeMap::DOM_NamedNodeMap() ld: 0711-317 ERROR: Undefined symbol: .DOMString::DOMString() ld: 0711-317 ERROR: Undefined symbol: .DOM_NamedNodeMap::operator=(const DOM_NamedNodeMap&) ld: 0711-317 ERROR: Undefined symbol: .DOMString::operator=(const DOMString&) ld: 0711-317 ERROR: Undefined symbol: .DOMString::DOMString(const char*) ld: 0711-317 ERROR: Undefined symbol: .DOMString::~DOMString() ld: 0711-317 ERROR: Undefined symbol: .DOMString::transcode() const ld: 0711-317 ERROR: Undefined symbol: .DOMString::length() const ..... ..... ..... make: The error code from the last command is 8 FROM THE .M FILE ++++++++++++++++ (ld): halt 4 (ld): setopt tmplrename (ld): setfflag 4 (ld): cdtors 0 all 0 s (ld): savename acbbatch (ld): filelist 27 1 (ld): i /lib/crt0.o (ld): i /lib/crti.o (ld): i acbbatch.o (ld): i acbbankserv.o (ld): i acbbatchmain.o (ld): i acbdinersclub.o (ld): i acbmastercard.o (ld): i acbmoneytransfer.o (ld): i acbtype.o (ld): i acbxcept.o (ld): i acbcats.o (ld): i /nci5d10/prod/c/lib/libti.a (ld): i /nci5d10/prod/c/lib/libdocxml.a (ld): i /nci5d10/prod/c/lib/libintxml.a (ld): i /nci5d10/prod/c/lib/libdatalayer.a (ld): i /nci5d10/prod/c/lib/libsql.a (ld): i /
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this
Undefined Symbol So
site About Us Learn more about Stack Overflow the company Business Learn more undefined symbol shared library about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss undefined symbol linux Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to resolve https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014619946 the undefined symbol error on an AIX machine when trying to compile c program? up vote 0 down vote favorite Following is the error obtained on compiling the code $ cc -o mq mq.c ld: 0711-317 ERROR: Undefined symbol: .MQCONN ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. mqconn function is defined in header file cmqc.h and the header file http://stackoverflow.com/questions/34019280/how-to-resolve-the-undefined-symbol-error-on-an-aix-machine-when-trying-to-compi is included in mq.c file How to resolve this error which is related to linking of file? c websphere-mq aix mq share|improve this question edited Dec 1 '15 at 15:10 ValerieLampkin 1,706222 asked Dec 1 '15 at 11:28 krishnaa 34 1 Defined or just declared? There is a very important difference between those two.. –Joachim Pileborg Dec 1 '15 at 11:36 You need to link against the library/object-file containing the definition/implementation of what is undefined. –alk Dec 1 '15 at 11:51 Thanks for the response .yes the function is just declared. –krishnaa Dec 1 '15 at 12:47 Question is do i have to look at the mapfile (obtained from the bloadmap) to link the required library/object-file . –krishnaa Dec 1 '15 at 13:30 You should find out what libraries have been delivered with MQS (aka Websphere MQ) –Lorinczy Zsigmond Dec 1 '15 at 13:57 | show 3 more comments 2 Answers 2 active oldest votes up vote 1 down vote The fact that a function prototype is defined in a header file doesn't mean the function is defined in the header file. You'
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/1568540/how-to-make-gcc-or-ld-report-undefined-symbols-but-not-fail site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://c.ittoolbox.com/groups/technical-functional/c-l/getting-error-ld-0711317-error-undefined-symbol-5848024 Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to undefined symbol make gcc or ld report undefined symbols but not fail? up vote 2 down vote favorite If you compile a shared library with GCC and pass the "-z defs" flag (which I think just gets passed blindly on to ld) then you get a nice report of what symbols are not defined, and ld fails (no .so file is created). On the other hand, undefined symbol c++ if you don't specify "-z defs" or explicitly specify "-z nodefs" (the default), then a .so will be produced even if symbols are missing, but you get no report of what symbols were missing if any. I'd like both! I want the .so to be created, but I'd also like any missing symbols to be reported. The only way I know of to do this so far is to run it twice, once with "-z defs" and once without. This means the potentially long linking stage is done twice though, which will make the compile/test cycle even worse. In case you're wondering my ultimate goal -- when compiling a library, undefined symbols in a local object file indicates a dependency wasn't specified that should have been in my build environment, whereas if a symbol is missing in a library that you're linking against that's not an error (-l flags are only given for immediate dependencies, not dependencies of dependencies, under this system). I need the report for the part where it lists "referenced in file" so I can see whether the symbol was referenced by a local object or a
Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries VoIP_News Inside-ERP MacProTX I_am_the_dragon Inside-CRM maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker Ramnath.Awate JoeTorre bracke Locutus Dennis Stevenson Craig Borysowich Richard DukeGanote mircea_luca iudithm Clinton Jones Nikki Klein AbhaiTripathi Iqbalyk bluesguyAZ59 blrvenkat jakarman COMPANIES Sophos EdgeWave Skybot Software Epicor Software ... View All Topics View All Members View All Companies Toolbox for IT Topics C Languages Groups Ask a New Question C Languages The C Languages group is a forum where peers share technical expertise, solve problems, and discuss issues related to C Languages. Home | Invite Peers | More C Languages Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. Getting Error 'ld: 0711-317 ERROR: Undefined symbol' raghumrao asked Jan 7 | Replies (7) I am getting the following error "ld: 0711-317 ERROR: Undefined symbol" while executing a C-Program in UNIX. Can anybody help please? Answer this question | Join this group Popular White Paper On This Topic IP Phone Comparison Guide 7Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Paul_Pedant replied Jan 7 I don't think you