Skip to content

Fails to compile on Windows with --gc:orc #48

@maleyva1

Description

@maleyva1

As the title says, the following program fails to compile on Windows with --gc:orc:

import serial

for i in listSerialPorts():
   echo i

Expected behavior:

  • Sample program compiles

Actual behavior:

  • The program fails to compile with --gc:orc and we get the following message:
$HOME\.nimble\pkgs\serial-1.1.5\serial\private\utils\windows_registry.nim(89, 81) Error: expression cannot be cast to pointer

Nim Version:
1.6.12

OS:
Windows 11 Pro 22H2 Build 22621.1702

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions