Skip to content

cpprest_compat breaks cURL header when building with Clang 14 #1710

Open
@lilianmoraru

Description

@lilianmoraru

#define dllimport inside cpprest_compat.h breaks curl.h on Clang 14.

See minimized example here: godbolt

The issue was initially reported to LLVM.
The LLVM issue was closed. For the reason, see these comments: comment1 and comment2.

Activity

barcharcraz

barcharcraz commented on Jun 27, 2022

@barcharcraz
Member

Yeah I can see why they closed that one. This header is pretty horrible.

laveur

laveur commented on Nov 8, 2022

@laveur

FYI this project is now dead. You should move away from cpprest ASAP. See the readme file.

barcharcraz

barcharcraz commented on Nov 8, 2022

@barcharcraz
Member

Indeed, we will fix any super critical bugs, but we highly, highly, highly recommend folks move to another library. We usually recommend libcurl.

added a commit that references this issue on May 28, 2024
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

      Participants

      @lilianmoraru@laveur@barcharcraz

      Issue actions

        cpprest_compat breaks cURL header when building with Clang 14 · Issue #1710 · microsoft/cpprestsdk