Author Topic: .exe file doesn't work on other machine  (Read 3854 times)

Offline jcheng3305

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Super!
.exe file doesn't work on other machine
« on: April 09, 2010, 03:17:07 pm »
I complied an .exe file that worked on my computer.  But, I passed to other computer.  It showed an error that the .exe file did not work as no glu32.dll is not installed in.  How can it be fixed so that any complied .exe file can work on any machine?  Tks.
New guy on C++/Code::Blocks/OpenGL....!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: .exe file doesn't work on other machine
« Reply #1 on: April 09, 2010, 03:44:35 pm »
You fix this by being a knowledgeable Windows programmer.

A partial list of things.

Do not use DLLs that you are not going to ship with your exe.
The exception is known system DLLs.

Learn to use a DLL walker to confirm above.
http://www.dependencywalker.com/faq.html

Read sites that supports learning Windows and Basic C/C++ Programming. This is NOT such a site.

Note, this is NOT a valid Code::Blocks topic; thread is likely to be locked.

Tim S.
« Last Edit: April 09, 2010, 06:44:05 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org