ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My C program (XM3DEDIT) has numerous gtk,gdk,X11 library calls. I am compiling from PUPPY console. The program has previous compile and run
history from RedHat 9.0 all OK. The compiled program also runs fine on PUPPY. But the command:
you can "try" ???? to build it
but you wil need some VERY old code and antique programs
to start with gcc 2.9 or OLDER
then the VERY OLD gtk1 ( gtk3 is the current)
From djohan: Adding the linker reduced messages from about 200 to 4 (3 warnings +1 error).
The error msg was:
/usr/bin/ld: /tmp/cc4rz1DJ.o undefined reference to symbol 'atan2@@GLIBC_2.0'
/usr/bin/ld: note: 'atan2@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try
adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: 1d returned 1 exit status
Note: Followed the instructions above (Put /lib/libm.so.6 inside linker quotes) and compiled with only three warnings. But new error message was:
/usr/bin/1d: cannot open output file XM3DEDIT: No such file or directory
collect2: 1d returned 1 exit status
Last edited by djohan; 10-22-2014 at 01:46 PM.
Reason: Error #1 was fixed, New error occurred.
Off: The backslash at the end of a line means continuation line follows
Off2: In X Window System, you can use left mouse button to select text, right/middle button to paste the selected test.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.