Hello winers
I'm doing a little excersice.
A minimal source
#include <string>
int main(void)
{
return 0;
}
So, if i compile that with:
g++ -I/usr/include/wine/msvcrt -c myfile.cpp
I get errors like:
In file included from /usr/include/c++/4.4/bits/postypes.h:42,
from /usr/include/c++/4.4/bits/char_traits.h:42,
from /usr/include/c++/4.4/string:42,
from myfile.cpp:1:
/usr/include/c++/4.4/cwchar:148: error: ?::fwide? has not been declared
The question is:
If i pass the -I option to the compiler intructing it to search <string>
in wine FIRST (the c++ headers are searched in last instance, right ?), why the
compiler shows that is using string.h from c++ ?
If string.h is found in the wine includes, string.h from c++ is also used then ?
I don't expect this behavior. I expected a correct compilation (just
compilation, i'm not linking here).
On Thu, 2010-12-02 at 07:49 -0600, carugnom wrote:> Hello winers > > I'm doing a little excersice. > A minimal source > > #include <string>**************string.h The file you want is /usr/include/string.h not /usr/include/string With this correction your source compiles OK with both gcc and g++ Martin
carugnom wrote:> So, if i compile that with: > g++ -I/usr/include/wine/msvcrt -c myfile.cppAs this on c++ development forum. This has nothing to do with Wine.
vitamin <wineforum-user at winehq.org> wrote:> >carugnom wrote: >> So, if i compile that with: >> g++ -I/usr/include/wine/msvcrt -c myfile.cpp > >As this on c++ development forum. This has nothing to do with Wine. >Maybe we need a forum for developing/building applications on Wine vice Windows? This is not normally a User type question and not a Wine Development type question. James McKenzie