Simple C++ GUI programme does'nt run from dos
Actually I have made programme in C++ .The programme is using graphics functions. I want to Compile it from dos (cmd) using Tcc compiler. but when i compile it, it gives me linker errors about gui files. Although same programme Compiles correctly from C editor(IDE).
question is WHAT should I do ????????????.
I want to run it from Dos (its very essential)
tanx .
please answer as quickly as possible
Re: Simple C++ GUI programme does'nt run from dos
Quote:
Originally posted by Shadowhunt
Actually I have made programme in C++ .The programme is using graphics functions. I want to Compile it from dos (cmd) using Tcc compiler. but when i compile it, it gives me linker errors about gui files. Although same programme Compiles correctly from C editor(IDE).
question is WHAT should I do ????????????.
I want to run it from Dos (its very essential)
From what I remember about Turbo C++ and its graphics, you need to copy those .BGI (Borland Graphics Interface) files to the same folder your .exe is present in. These files otherwise would be present in the BGI subfolder of your TC compiler.
Furthermore, if you are using Fonts provided by Borland, you need to copy those .CHR files to the executable folder too.
Basically, you have to specify the 'path' of the Graphic library files you'd be using. You can either specify this in the source itself (and put .BGI files in a different folder relative to the executable), or simply put the .BGI files in the same folder as executable.