Archived

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

hal10000

NetBSD Linking Problems.

Recommended Posts

hal10000    122
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