Alex

When trying to compile with Harbour from CVS and MSVC 8 (2005) I get:

rddcdx.lib(dbfcdx1.obj) : warning LNK4254: section '.CRT' (40000040) merged into
 '.data' (C0000040) with different attributes


My plan for this was to put the strings into defines which could then be selected by version. I don't know why MS insist on screwing with how this works.

It's possible the linker merge part is not strictly necessary, but if you want to experiment (for now) change

#pragma comment( linker, \"/Merge:.CRT=.data\" )\n
to
#pragma comment( linker, \"/Merge:.CRT=.rdata\" )\n

at 3 places in source/compiler/genc.c

This is not a permanent fix, and may cause msvc6 to complain (untested)

or comment out that line entirely anywhere you find it.

This will reduce the number of such warnings and I'll do a build with all of them changed and various msvc versions and make sure it still works.

Paul
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to