Code Monkey home page Code Monkey logo

Comments (8)

Timo6 avatar Timo6 commented on August 22, 2024

This should be possible, I hope to have a look at it in the next week or so.

from vdrift-mac.

Timo6 avatar Timo6 commented on August 22, 2024

Seems to work, apart from one error:

vdrift/src/graphics/model_obj.cpp:224:54: error: invalid operands to binary expression ('basic_ostream<char, std::__1::char_traits<char> >' and 'std::ostream' (aka 'basic_ostream<char>'))

It does mean dropping support for Mac OS X 10.5 and 10.6, but I have no idea if VDrift works on them any more anyway.

from vdrift-mac.

logzero avatar logzero commented on August 22, 2024

That's a bug, luckily a trivial one.

from vdrift-mac.

Timo6 avatar Timo6 commented on August 22, 2024

Now something isn't linking right:

Undefined symbols for architecture x86_64:
  "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::length() const", referenced from:
  calgo_testTest::run(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) in containeralgorithm.o

from vdrift-mac.

logzero avatar logzero commented on August 22, 2024

Just did a quick grep for length(). This should fail in a few other places too. Replacing it with size() should do the job.

from vdrift-mac.

logzero avatar logzero commented on August 22, 2024

Hmm, it might be a bit more involved.
The code wants a reference to the length() function. My guess is that the compiler has it inlined, thus the linker can't find it.

from vdrift-mac.

monwarez avatar monwarez commented on August 22, 2024

I have the same problem in FreeBSD. I found that std::mem_fun_ref was deprecated in cplusplus.com reference , and I tested the example and it didn't work(get the same error). So maybe use std::mem_fn instead(I don't know how to use it)

from vdrift-mac.

Timo6 avatar Timo6 commented on August 22, 2024

VDrift/vdrift@31d53b5 fixes it 😄

from vdrift-mac.

Related Issues (6)

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.