Author Topic: error C2106: '=' : left operand must be l-value  (Read 2901 times)

xinye

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
error C2106: '=' : left operand must be l-value
« on: November 28, 2008, 04:02:35 am »
I use MSVC 7.1 without Platform SDK to build planeshift and get the C2106 error:

Code: [Select]
正在编译...
dictionary.cpp
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(322) : error C2106: “=” : 左操作数必须为 l 值

1,does the MSVC71 need Platform SDK?
2,pls help me to fix it, tks.

fans1

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: error C2106: '=' : left operand must be l-value
« Reply #1 on: February 19, 2009, 04:33:56 am »
commet file planeshift\src\tools\fparser\fparser.h line 12 #include <string> will work ,bug libfpraser will break
dont know why

fans1

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: error C2106: '=' : left operand must be l-value
« Reply #2 on: February 19, 2009, 04:36:49 am »
another way
move  fparser.h line 12 #include <string> to fparser.cpp will both work