943,935 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1212
  • C RSS
Feb 11th, 2006
0

pointer problems

Expand Post »
Hello, the code is quite big so I'm hoping someone can help based on the errors reported:

Quote ...
D:\Scanner\lexicalScanner.cpp(185) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Scanner\lexicalScanner.cpp(197) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Scanner\lexicalScanner.cpp(239) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Scanner\lexicalScanner.cpp(244) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\Scanner\lexicalScanner.cpp(247) : error C2440: '=' : cannot convert from 'char *' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
parser.cpp
Any suggestions?
Similar Threads
Reputation Points: 12
Solved Threads: 5
Posting Pro
Acidburn is offline Offline
510 posts
since Dec 2004
Feb 11th, 2006
0

Re: pointer problems

You're trying to assign a string (char *) to a variable that isn't a pointer.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: converting a char array to a single char
Next Thread in C Forum Timeline: Newmember with big problem!!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC