Skip to content

HXCPP-DEBUGGER fatal error LNK1120: 2 unresolved externals #991

Open

Description

@sonygod
-cp src
-main Main
--cpp bin/cpp

 -D dll_link

-D HXCPP_M64
-D HXCPP-DEBUGGER

and Main.hx

package;


@:nativeGen
class Main {
   public  static function main() {
      
    trace('hello dll');
    }


    public static function test(){

        trace('from haxe dll test');
    }
}

Activity

  1. tobil4sk commented on Oct 31, 2026

    @tobil4sk
    Member

    I can't reproduce this with haxe 4.3.7 and nightly hxcpp (on linux). It's possible the unresolved symbols were due to a stale objects from a build without the debugger, which would be fixed by #1453.

    EDIT: I tested msvc with haxe 4.2.5 and hxcpp 4.2.1 which are versions from around when this was reported, and I still couldn't reproduce with a clean build. I'll put it down to stale objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions