Opened 9 years ago

Last modified 9 years ago

#8 new defect

Make msvcrt.dll build

Reported by: dmik Owned by:
Priority: major Milestone: general enhancement
Component: odin Version:
Severity: Keywords:


Odin contains an emulation library for MSVCRT in src/msvcrt which in particular defines MS-specific functions like _wgetdcwd() or _wfullpath(). Since these functions are frequently used in Windows sources (and in particular, in Java), it makes sense to resurrect this library to avoid fixing each such invocation individually.

Change History (5)

comment:1 Changed 9 years ago by dmik

  • Summary changed from Make msvcrt.lib build to Make msvcrt.dll build

I almost made it build in r21395 but there are several variables and functions used by one of the EMX support libraries (located in /lib/EmxSupport) that are defined by another one with slightly different names (prefixes). Since we don't have sources for these libraries, it is not that easy to resolve this issue (we could provide forwarders/wrappers for functions but we can't do anything with variables -- only a binary hack of the object file could help).

However, since we don't actually need a complete MSVCRT implementation for Java (since we use the EMX runtime), I won't be spending time on that now and will instead create a stripped down MSVCRT library (regular static library, not a DLL) that will only provide a few functions we need. It will be called MINIVCRT.LIB (and accompanied with the win/minivcrt.h include).

comment:2 Changed 9 years ago by dmik

Created MINIVCRT.LIB in r21398. Leaving this open as the primary subject is postponed.

comment:3 Changed 9 years ago by diver

  • Milestone set to odinized java

comment:4 Changed 9 years ago by diver

  • Milestone odinized java deleted
  • Priority changed from blocker to major

comment:5 Changed 9 years ago by diver

  • Milestone set to general enhancement
Note: See TracTickets for help on using tickets.