Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


NetBSD Linking Problems.

This topic is 6038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

int main(int argc, char **argv) { // glutInit(&argc, argv); // glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); // glutInitWindowSize(320, 200); // glutCreateWindow("mygl.c"); // glutSetWindowTitle("mygl.c"); // glutDisplayFunc(mDisplay); // glutReshapeFunc(mReshape); // glutKeyboardFunc(mKeyboard); // glutIdleFunc(mIdle); // glutMainLoop(); return 0; } If I uncomment, the program compiles and links but does nothing. When I uncomment, and use a HUGE ld command, I get this: ld: warning: cannot find entry symbol _start; defaulting to 080482b8 /usr/lib/libc.so: undefined reference to `environ'' /usr/lib/libc.so: undefined reference to `__progname'' GNU ld version 2.9.1 (with BFD 2.9.1) I''m baffled. I shouldn''t have to use -lc, but it doesn''t matter if I do. Suggestions?

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!