-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WLink "memory could not be read" exception #1360
Comments
I think I know what happened, actually. Let me do a bit more testing. What's the difference between the R and S libraries? I suspect mixing them is the problem. Preliminary testing of just including the R libraries seemed to "work" but it just asked me for a library I was already including. |
Thanks for your bug report. Anyway from the first message
|
I am desperately trying to avoid environment variables for portability reasons, and had been under the assumption that the environment variables were used strictly by the IDE itself. I've managed to pass the correct header files using a -i inclusion, so I've at least gotten that far. If you know, why are the others necessary? |
You complicate your live by your jiggery pokery. If you want to use OW then run simple configuration batch file and next you can use it without jiggery pokery or if you have permanent configuration than modify your default environment. |
Git forces me to use an absolute path, so I began using virtual drives to organize my projects because it makes switching between my laptop and desktop easier. I also prefer to keep the tools on the virtual drive, despite redundancy, in case I want to program on a machine that doesn't have these tools. Something to note is that Windows and DOS are both operating systems that are primarily meant to handle portable installations. Yeah, there's plenty of programs that ignore this convention, but it's like how alt+enter is supposed to be the fully screen keybind by Windows' own convention, despite few programs actually using this keybind for that. Anyways all of this to say is that I'm running one last test because I think someone may have conflated an environment variable and a regular variable in the manual back when it was first written. There is a huge operational difference between the two(you couldn't even set the former in Batch before Windows 7,) but the linker manual has at least a hint suggesting they may be taking from the regular variables instead. If my test fails, no harm no foul I'll just redo the installation. |
We are not depending on any OS specific because Open Watcom is by nature cross-compiler. |
That's not what portable means(in this instance.) When I say portable, I mean the definition that says the installation is self-contained and can have its directory changed at will without affecting operations of the program. |
You can copy OW tree anywhere and run batch file to setup 3 environment variables or add it to the system or user environment, it is not portable? |
Last post before I go test. |
Sorry you are wrong, environment setup can be various, temporary or user specific or system. |
Yeah you're right, I'm wrong. I was wondering why setenv wasn't working. Oops. |
Yeah okay, well that solves that bit and simplifies the script down immensely. An impressively overengineered solution, defeated by a simple setlocal to make sure I don't make a mess out of my path variable. Jesus Christ, what is wrong with me... It's going to be really funny if it turns out that the linker crash is caused entirely because of my overengineering(it already had a similar issue because I used quotation marks.) We're about to find out. |
Honestly I'm not even sure if you can replicate my crash without the complete misunderstanding of the very operating system you're using. This was very embarrassing and I apologize for wasting your time like this. |
No problem, now you understand how it should be and don't create your own problems. |
I'm using the December 2nd 32-bit Windows build.
I have a basic linker script that looks like this. By all accounts, I think this should link. It doesn't look too dissimilar to the examples provided, other than the absurd list of libraries I included to stop a different error.
Instead of linking, my linker has a very, very angry output instead. On top of the non-sense warning, it also spits out an exception.
Here is the linking environment, and here is my compilation environment if you so desire.
The text was updated successfully, but these errors were encountered: