Closed danieljfarrell closed 1 month ago
Hi Daniel,
It seems that stricmp is not available in every library. It is available for GCC on Windows, but just a few days ago I learned that it doesn't work on Linux.
I just found this at https://www.ibm.com/docs/en/i/7.3?topic=functions-stricmp-compare-strings-without-case-sensitivity:
"Note: The stricmp() function is available for C++ programs. It is available for C only when the program defines the cplusplusstrings__ macro."
So:
Or you can create your own version. That is what I did:
int stricmp( const char a, const char b ) { for( ; a != '\0' && b != '\0' && a == b; a++, b++ ) {} return a - b; }
‘LONG_MAX’ undeclared:
It seems that for Windows some header file includes what is needed, but you can just follow the tip of the compiler message:
Please let me know if these suggestions solve the problem or not.
Cheers, Isaac
Thanks Isaac,
That's helpful, I will try with GCC on Windows.
Regards,
Dan
Hi Daniel,
Did you have any success?
Cheers!
Yes I could build it really easily on Windows. Unfortunately I could not test it because I don't have any PCAD files and I can't get PCAD to install on Windows 11 ARM! Grrr.
Hello
Thanks for releasing this, it seems a very well put together project.
Do you have any tips for how you built the software on your system?
I am bit rusty with build tools, it's been a while, but I have done the following.
Perhaps the linker flags need defining?
As I get a few missing declaration type errors.
Here is the full output
I know it's annoying explaining basic stuff to people on the internet, I appreciate you time and efforts!
I am building on linux, but could also build on Windows 11 or macOS.