Skip to content
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

Compiling with MinGW - Linker Error #1925

Closed
DorpsGek opened this issue Apr 13, 2008 · 5 comments
Closed

Compiling with MinGW - Linker Error #1925

DorpsGek opened this issue Apr 13, 2008 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Desolator opened the ticket and wrote:

Got this while compiling r12696 with MinGW, it's a linker error:

************************************
[SRC] Linking openttd.exe
win32.o(.text+0x97a):win32.cpp: undefined reference to `_set_error_mode(int)'
collect2: ld returned 1 exit status
make[1]: *** [openttd.exe] Error 1
************************************
(Are there any code tags?)

The line in question is 994: int _set_error_mode(int);
The problem is that this isn't included in the libraries so the linker complains.
So far changing it to "int _set_error_mode(int stuff) {return 0;}" seems to work.

Attachments

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/1925
@DorpsGek
Copy link
Member Author

glx wrote:

It is included, as it works for me.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1925#comment3874

@DorpsGek
Copy link
Member Author

Desolator wrote:

Strange. I got MinGW-5.1.3 with GCC 3.4.5. Possibly it's not included anymore, I'm not sure. Or something might be wrong in my install.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1925#comment3875

@DorpsGek
Copy link
Member Author

glx wrote:

Try updating mingw-runtime and w32api (I don't know which one is installed with MinGW-5.1.3).

And the _set_error_mode stuff is present in openttd source since r2954.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1925#comment3876

@DorpsGek
Copy link
Member Author

Desolator wrote:

Hmm, looks like I had corrupted files, as I reinstalled everything and now linking works.

Thanks.

// Madassasin


This comment was imported from FlySpray: https://bugs.openttd.org/task/1925#comment3877

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Not a bug

Broken development environment.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1925

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant