3 Replies - 299 Views - Last Post: 16 April 2013 - 11:03 AM Rate Topic: -----

#1 billh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 13-April 07

SDL app compiling and linking correctly but won't run

Posted 15 April 2013 - 08:25 AM

Sorry newbie again!
I have been trying to follow the basic tutorial for using SDL with vs 2010 express.
I completed all the setup (include files, lib files etc and the whole code compiled and linked without any problems. The problem is when I try to run the program I get the message "the application was unable to start correctly error code 0xc000007b, click close"
does anyone know what the problem is and how I deal with it?
I am running windows 7 64 bit system with vs 2010 express.

This post has been edited by jimblumberg: 15 April 2013 - 08:49 AM
Reason for edit:: Removed code tags.


Is This A Good Question/Topic? 0
  • +

Replies To: SDL app compiling and linking correctly but won't run

#2 jimblumberg  Icon User is online

  • member icon


Reputation: 3987
  • View blog
  • Posts: 12,299
  • Joined: 25-December 09

Re: SDL app compiling and linking correctly but won't run

Posted 15 April 2013 - 08:50 AM

Quote

I try to run the program I get the message "the application was unable to start correctly error code 0xc000007b, click close"
does anyone know what the problem is and how I deal with it?

There is an error in your code that you need to fix. Just because the program compiled doesn't mean it's correct.

Jim
Was This Post Helpful? 0
  • +
  • -

#3 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1304
  • View blog
  • Posts: 4,488
  • Joined: 19-February 09

Re: SDL app compiling and linking correctly but won't run

Posted 15 April 2013 - 10:46 AM

This is unlikely to be your code. It is probably to do with your dll.

Even though your on a 64 bit machine the compiler can build either 32 or 64.

So are you building a 32 or 64 bit program?

And check which bit version of SDL lib and dll files you are using.


You could try searching for 'SDL 0xc000007b'.
Was This Post Helpful? 1
  • +
  • -

#4 billh  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 13-April 07

Re: SDL app compiling and linking correctly but won't run

Posted 16 April 2013 - 11:03 AM

Just to update my query, I tried using DEVC++ IDE to create the exact same tutorials and I got consistent, working programs first time and every time with no problems at all.
This was using the same code etc.
I am beginning to wonder if maybe it has more to do with VS2010 express
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1