non-standard libraries. fatal compile errors. Failure.
||=== mci, Debug ===|
C:\sandbox\mci\mci_main.c||In function `main':|
C:\sandbox\mci\mci_main.c|16|error: `MAXDIR' undeclared (first use in this function)|
C:\sandbox\mci\mci_main.c|16|error: (Each undeclared identifier is reported only once|
C:\sandbox\mci\mci_main.c|16|error: for each function it appears in.)|
C:\sandbox\mci\mci_main.c|28|error: `MAXEXT' undeclared (first use in this function)|
C:\sandbox\mci\mci_main.c|28|error: `MAXFILE' undeclared (first use in this function)|
C:\sandbox\mci\mci_main.c|32|error: storage size of 'file' isn't known|
C:\sandbox\mci\mci_main.c|34|error: `FA_NORMAL' undeclared (first use in this function)|
C:\sandbox\mci\mci_main.c|59|warning: implicit declaration of function `fnsplit'|
C:\sandbox\mci\mci_main.c|65|warning: implicit declaration of function `findfirst'|
C:\sandbox\mci\mci_main.c|65|warning: implicit declaration of function `findnext'|
C:\sandbox\mci\mci_main.c|87|warning: implicit declaration of function `clrscr'|
C:\sandbox\mci\mci_main.c|158|warning: implicit declaration of function `wherey'|
C:\sandbox\mci\mci_main.c|159|warning: implicit declaration of function `wherex'|
C:\sandbox\mci\mci_main.c|171|warning: implicit declaration of function `gotoxy'|
C:\sandbox\mci\mci_main.c|172|warning: implicit declaration of function `clreol'|
C:\sandbox\mci\mci_main.c|211|warning: suggest parentheses around assignment used as truth value|
C:\sandbox\mci\mci_main.c|15|warning: unused variable `j'|
C:\sandbox\mci\mci_main.c|16|warning: unused variable `filename'|
C:\sandbox\mci\mci_main.c|18|warning: unused variable `dsz'|
C:\sandbox\mci\mci_main.c|28|warning: unused variable `ext'|
C:\sandbox\mci\mci_main.c|28|warning: unused variable `fname'|
C:\sandbox\mci\mci_main.c|32|warning: unused variable `file'|
C:\sandbox\mci\mci_main.c|33|warning: unused variable `srch'|
||=== Build finished: 7 errors, 16 warnings ===|
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
Yup -- previous errors confirmed when I tried to compile it with Code::Blocks. Will not compile at all with VC++ 2008 Express because it does not support dir.h
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
why would you ever do something that depends on Borland C++? that's got to be one of the worst compilers out there.
please consider using MSVC, GCC or MinGW compilers. there are plenty of free development environments with full featured editors and debuggers that use modern libraries instead of the obscure non-standard ones peculiar to Borland and Turbo C.
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
okay, i feel bad now. despite being dependent on legacy libraries, this is some nice looking code ... and the particular problem is an interesting one. i guess that's why i was disappointed i couldn't compile it.
But I also see now that the OP is an experienced programmer who used Borland back when it was top of the line in the 80s and early 90's. .
it's just a shame that today Borland focuses more on cornering the burgeoning Second World market than updating their compilers to the 21st Century.
perhaps in the future banders7 will just check that his code is compilable on MSVC or gcc or MinGW compilers as well as Borland.
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
okay, i feel bad now. despite being dependent on legacy libraries, this is some nice looking code ... and the particular problem is an interesting one. i guess that's why i was disappointed i couldn't compile it.
But I also see now that the OP is an experienced programmer who used Borland back when it was top of the line in the 80s and early 90's. .
it's just a shame that today Borland focuses more on cornering the burgeoning Second World market than updating their compilers to the 21st Century.
perhaps in the future banders7 will just check that his code is compilable on MSVC or gcc or MinGW compilers as well as Borland.
Borland does have modern 32-bit/64-bit compilers, they are not free. The only free Borland compilers are ancient and obsolete. I can't vouch for how good or bad the newest Borland compilers are because I don't use them. But since Borland is still in business I suppose enough people/companies are buying them to keep them alive.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
That's bad news. We needed Borland as a competitor to Microsoft. I suppose M$ now has about 90% marketshare of the compiler market.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343