#57 compiling with gcc3.4.1

open
nobody
None
5
2004-08-31
2004-08-31
Anonymous
No

Changes necessary:

In os_dep.h - comment out define
of 'PUT_TSDS_IN_HEADER' in the __GNUG__ section.

In JFieldProxy.tsp - add prototypes of copy constructors.

In JArray.h - fix use of 'env' variable (by moving attach
in front of 'for' loop (?)).

In JMethod.h - move prototype of 'toVector' to
before 'JMethod' class declaration.

In JFieldProxy.h - replace 'NO_OP'
with 'FieldType::JObject::NO_OP', fix use of 'env'
variable in copy constructor (by adding attach at start
of function (?)).

Doing this allows the code to compile, although you get
a load of (spurious) warnings about functions being used
but never defined.

Discussion

  • Ryan Kelly
    Ryan Kelly
    2005-02-06

    Logged In: YES
    user_id=1071520

    Thanks for the tips, this allowed me to compile with the
    latest MinGW (although I'm having some linking problems as
    well...)

    I additionally had to fix JFieldProxy.h to change "parent"
    to "parent_" in the argument list of the JFieldProxy
    constructor.