Giter Site home page Giter Site logo

Comments (7)

roccomoretti avatar roccomoretti commented on May 20, 2024 1

Looks like it's having an issue finding the function std::pair< std::string, std::string > binder::function_arguments_for_lambda( clang::FunctionDecl const *, int) when attempting to link std::string binder::bind_constructor( clang::CXXConstructorDecl const *, std::pair< std::string, std::string > const &, unsigned int, bool, binder::Context &)

Which is odd, as that function should be present with binder/function.cpp ... unless there's an issue with the conversion of int to uint to Windows.

@lyskov I don't think uint is a standard C++ type. Where is the definition of this type supposed to be coming from? I couldn't find a typedef in binder proper, nor does it look like the LLVM headers use/define it. Windows having problems with the uint type might explain the issue.

from binder.

lyskov avatar lyskov commented on May 20, 2024

I do not have Windows machine so i can not replicate this. But it looks like problems with linking, particularly that you might need to alter linking command line and instruct your compiler to link the right libstdc++ (i would guess then one that VC uses)...

from binder.

trelau avatar trelau commented on May 20, 2024

hmmm...anything in that error look like a missing library? I can never decipher these things...

I used the /FORCE command to get an executable, and it was able to generate bindings for everything except classes since this error is in the class.obj file.

looping in @csarn since some success has been mentioned in the pull request.

from binder.

trelau avatar trelau commented on May 20, 2024

@roccomoretti I converted all uint to unsigned int in my local repo. I'll admit I'm just blindly changing some source code to try and resolve it (I don't have a lot of experience in C++). Thanks for the input. I'll keep working on it.

from binder.

trelau avatar trelau commented on May 20, 2024

jeez...when I replaced uint with unsigned int I had inconsistent types in the function_arguments_for_lambda method (one had int and the other had unsigned int)...typo..i'll close the issue

from binder.

lyskov avatar lyskov commented on May 20, 2024

Wow good find @roccomoretti i totally misread that error message!

from binder.

lyskov avatar lyskov commented on May 20, 2024

@trelau re unit: the simplest solution to workaround it would probably be to add uint typedef in some of the Binder header and make it conditional for Windows platform with defines. Pull-request doing this will be welcome!

from binder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.