User forums > Using Code::Blocks

Stupid Question

<< < (5/7) > >>

FlyingIsFun1217:
Cool, thanks for telling me :)

Now, after doing this, I seem to just get the error that:


--- Quote ---mingw32-g++.exe: GL\libglut32.a: No such file or directory

--- End quote ---

After adding GL\libglut32.a to the project build options' linker tab.

Biplab:
It says it can't find the library. Just provide the full path to it. Example: C:/MinGW/Lib/GL/libglut32.a

FlyingIsFun1217:

--- Quote from: Biplab on March 17, 2007, 05:38:08 pm ---It says it can't find the library. Just provide the full path to it. Example: C:/MinGW/Lib/GL/libglut32.a

--- End quote ---

Yeah, that works. Needed to restart C::B for some reason...
So now I have a working executable! Kind of, again!
Upon startup, it says:


--- Quote ---This application has failed to start because (null).dll was not found. Re-installing the application may fix this problem.

--- End quote ---

It says this even with glut32.dll next to it :(

Something I'll have to figure out on my own?

Thanks!
FlyingIsFun1217

Biplab:
Can you post me first few lines of def file? I think the calling convention is different.

Just try recreating the import library using the following command.

--- Code: ---dlltool -U -d glut.def -l libglut32.a
--- End code ---

FlyingIsFun1217:
DEF File (Sorry in advance):


--- Quote ---DESCRIPTION 'OpenGL Utility Toolkit for Win32'

VERSION 3.7

EXPORTS

   glutAddMenuEntry
   glutAddSubMenu
   glutAttachMenu
   glutBitmapCharacter
   glutBitmapLength
   glutBitmapWidth
   glutButtonBoxFunc
   glutChangeToMenuEntry
   glutChangeToSubMenu
   glutCopyColormap
   glutCreateMenu
   __glutCreateMenuWithExit
   glutCreateSubWindow
   glutCreateWindow
   __glutCreateWindowWithExit
   glutDestroyMenu
   glutDestroyWindow
   glutDetachMenu
   glutDeviceGet
   glutDialsFunc
   glutDisplayFunc
   glutEnterGameMode
   glutEntryFunc
   glutEstablishOverlay
   glutExtensionSupported
   glutForceJoystickFunc
   glutFullScreen
   glutGameModeGet
   glutGameModeString
   glutGet
   glutGetColor
   glutGetMenu
   glutGetModifiers
   glutGetWindow
   glutHideOverlay
   glutHideWindow
   glutIconifyWindow
   glutIdleFunc
   glutIgnoreKeyRepeat
   glutInit
   __glutInitWithExit
   glutInitDisplayMode
   glutInitDisplayString
   glutInitWindowPosition
   glutInitWindowSize
   glutJoystickFunc
   glutKeyboardFunc
   glutKeyboardUpFunc
   glutLayerGet
   glutLeaveGameMode
   glutMainLoop
   glutMenuStateFunc
   glutMenuStatusFunc
   glutMotionFunc
   glutMouseFunc
   glutOverlayDisplayFunc
   glutPassiveMotionFunc
   glutPopWindow
   glutPositionWindow
   glutPostOverlayRedisplay
   glutPostRedisplay
   glutPostWindowOverlayRedisplay
   glutPostWindowRedisplay
   glutPushWindow
   glutRemoveMenuItem
   glutRemoveOverlay
   glutReportErrors
   glutReshapeFunc
   glutReshapeWindow
   glutSetColor
   glutSetCursor
   glutSetIconTitle
   glutSetKeyRepeat
   glutSetMenu
   glutSetWindow
   glutSetWindowTitle
   glutSetupVideoResizing
   glutShowOverlay
   glutShowWindow
   glutSolidCone
   glutSolidCube
   glutSolidDodecahedron
   glutSolidIcosahedron
   glutSolidOctahedron
   glutSolidSphere
   glutSolidTeapot
   glutSolidTetrahedron
   glutSolidTorus
   glutSpaceballButtonFunc
   glutSpaceballMotionFunc
   glutSpaceballRotateFunc
   glutSpecialFunc
   glutSpecialUpFunc
   glutStopVideoResizing
   glutStrokeCharacter
   glutStrokeLength
   glutStrokeWidth
   glutSwapBuffers
   glutTabletButtonFunc
   glutTabletMotionFunc
   glutTimerFunc
   glutUseLayer
   glutVideoPan
   glutVideoResize
   glutVideoResizeGet
   glutVisibilityFunc
   glutWarpPointer
   glutWindowStatusFunc
   glutWireCone
   glutWireCube
   glutWireDodecahedron
   glutWireIcosahedron
   glutWireOctahedron
   glutWireSphere
   glutWireTeapot
   glutWireTetrahedron
   glutWireTorus
;    __glutSetFCB
;    __glutGetFCB

--- End quote ---

Recreating the import library just gives me the same results. :(

Thanks for your continued support!
FlyingIsFun1217

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version