This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

SMB Utility source code - Cannot create EXE

SMB Utility source code - Cannot create EXE
by on (#162926)
Somehow I cannot create my own variant of SMB Utility...

The problem is creating it with a newer version of Visual Studio 2010, It cannot compile for some reason unless I extensively modify it to properly make it without errors, Especially since it requires Visual C 6 or something...

If someone has a port of the latest SMB Utility (1.08) for Visual Studio 2010 or compatible, Please either PM, or post it here,

Thanks!
Re: SMB Utility source code - Cannot create EXE
by on (#162935)
If you paste the first 20 or so compiler errors you get, we might be able to help.
Re: SMB Utility source code - Cannot create EXE
by on (#162942)
Errors:

Code:
Error   1   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\tools.c   37
Error   20   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\roomseldlg.c   29
Error   26   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\roommng.c   778
Error   30   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\objdata.h   23
Error   46   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\objeditdlg.c   86
Error   59   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\frame.c   524
Error   61   error C2220: warning treated as error - no 'object' file generated   c:\users\mark\desktop\smbutilsrc\filemng.c   66
Re: SMB Utility source code - Cannot create EXE
by on (#162944)
Remove -werror?
Re: SMB Utility source code - Cannot create EXE
by on (#162981)
Why haven't I thought of that...

Thanks Dwedit, And it works!!!
Re: SMB Utility source code - Cannot create EXE
by on (#163045)
Or better advice: fix the code that's generating the warnings.

When I was learning C, the absolute worst piece of advice I was told was "ignore warnings, they're usually not important". Repeatedly throughout my life I've found them to be reporting issues that caused unexpected size limitations (ex. signed vs. unsigned), incorrectly printed values, or in more extreme cases, segfaults/crashes. In other words, as a result, I take warnings quite seriously.

TL;DR -- If you can live without -Werror for the time being, great, but I'd suggest fixing the warnings if/when you have spare time. If you run into "quirks" or oddities in behaviour, I'd suggest you start looking at what the actual warnings are.
Re: SMB Utility source code - Cannot create EXE
by on (#163054)
Normally I'd agree, but since the code was already compiling with -werror in its original compiler, I'd actually guess that a lot of the warnings are frivolous things like MSVC's rogue deprecation of standard library functions.

I always use -werror if I have a choice, and it's great when it catches unintended things (especially accidental implicit casts), but in this case the code was already warning-free in its original context. I'd still go through those warnings if I was going to release it to anybody else, but if you're just trying to get it going for your own use? Might just be pointless busywork.
Re: SMB Utility source code - Cannot create EXE
by on (#163145)
The original compiler being from 1998 if it's indeed Visual C++ 6, though... It could very well mean the compiler didn't catch a lot of problematic things at the time. Especially if it was a pointer-to-integer cast, as I don't think anybody expected long to not match the pointer size (who'd have thought that long would remain 32-bit on a 64-bit platform?)
Re: SMB Utility source code - Cannot create EXE
by on (#163147)
Why exactly would you be using the 64 bit compiler to build a 15 year old program, especially when the 32 bit compiler is the default?