reset password
Author Message
lmann2
Posts: 156
Posted 14:00 Feb 03, 2014 |

Is anyone having trouble compiling and running lab four in windows 8 64-bit?  I have it saved as a .exe file in my c:// dir, but it gives me a "unsupported 16-bit Application" error.  Any thoughts?   

PabloS
Posts: 20
Posted 14:19 Feb 03, 2014 |

I'm not on windows 8 but I use CodeBlocks to run the program initially, which should exit out automatically because you didn't give any args. Then pressing up on the command line gives the previous command, which ran your program, so use that and then add your args.

Another option is to use CodeBlocks to add an argument before compiling and running, although I forgot where in the menus that is.

kknaur
Posts: 540
Posted 14:48 Feb 03, 2014 |

What program are you using to write your programs? My laptop has windows 8.1 and I am using Code::Blocks and my .exes work just fine.

lmann2
Posts: 156
Posted 14:50 Feb 03, 2014 |

That's a excellent suggestion.  I supplemented with a response listed on stack overflow (see: http://stackoverflow.com/questions/11888528/how-to-take-command-line-argument-in-codeblock-10-05).

 

lmann2
Posts: 156
Posted 14:58 Feb 03, 2014 |

I'm using code blocks. 

kknaur
Posts: 540
Posted 15:24 Feb 03, 2014 |
Can you email me your code? I'll see if I can get it to work on my computer.