Viewing 2 reply threads
  • Author
    Posts
    • #5839 Score: 0
      condyy
      Participant
      2 pts

      如图,网上搜到的是说连接的库文件出错。但是我没有调整库文件?
      我觉得有可能是[]这个符号运用的不对,但是查找一遍并无错误。
      请问大佬们,这是为什么呢?

      Attachments:
      You must be logged in to view attached files.
    • #5841 Score: 0
      mvp
      Participant
      2 pts

      不要用[]索引,用.x,.y和.z

    • #5849 Score: 0
      arc
      Participant
      5 pts

      Vector.hpp 中的 Vector3f 类只实现了 double operator[](int index) const 没有实现 double& operator[](int index)
      在链接的时候编译器找不到这个符号的实现所以报错。

      • This reply was modified 4 years, 8 months ago by arc.
      Attachments:
      You must be logged in to view attached files.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.