Problem: C++ warning: character constant too long for its type
Solution: don't drink and drive - multi-byte strings require double quotes in C
I've never got this error before. What is it? Have I uncoverd a bug in gcc? How much money do I get. It turns out that I was drinking and coding. i.e. mixing python and c++. I haven't touched C in a few months. Maybe one. I have been analyzing my data using code written in python. (Aaah python). Any how. I remembered to put semicolons, I remembered whitespaces don't matter nomore, but I forgot that multi-byte strings require double quotes. Aah the joys of bilingualism.
Solution: don't drink and drive - multi-byte strings require double quotes in C
I've never got this error before. What is it? Have I uncoverd a bug in gcc? How much money do I get. It turns out that I was drinking and coding. i.e. mixing python and c++. I haven't touched C in a few months. Maybe one. I have been analyzing my data using code written in python. (Aaah python). Any how. I remembered to put semicolons, I remembered whitespaces don't matter nomore, but I forgot that multi-byte strings require double quotes. Aah the joys of bilingualism.
heh, i forgot that too.. happy to find the answer so fast ;)
ReplyDeletethanks
ReplyDelete