Hi Marek,

4. I need to include "/NODEFAULTLIB:libcmt.lib" to get around link errors - I'm not sure what the implications of this are.

Are you talking about compiling Harbour itself, or about compiling
your application ? In the later case I guess you did not specify
-MT option for compiling your application. Despite the fact that
currently Harbour is not yet fully MT safe, it is compiled with
MT C runtime libraries using MSVC.
I am talking about compiling my PRG source.
I tried including -MT and the errors increased.

Then try to disable a line 141 in harbour/make_vc.mak
and line 121 in harbour/contrib/mtpl_vc.mak ( it looks
like CFLAGS = -MT$(DBGMARKER) $(CFLAGS) ), rebuild Harbour
and try to compile your application. I am curious if it
helps.

Yes, that fixed the problem.

5. I can get my app to build, but get this warning:
LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF

Seems you do not use functions from ADVAPI32 library but you
specified /OPT:REF linker option and ADVAPI32 library in your
link command. Try removing ADVAPI32 from your link command.
It must be included as I am referencing functions in it. I have no idea what the "/OPT:REF" is or where it is defined.

Are you *absolutly* sure ? Documentation for /OPT:REF says that :
-------
REF | NOREF
/OPT:REF eliminates functions and/or data that are never referenced while
/OPT:NOREF keeps functions and/or data that are never referenced.
--------
and for sure a linker does what doc says :). Optionaly you can
set C_USR envvar to : set C_USR=/IGNORE:4089, but it only shuts
the linker up.

The only reference I see like that is in MAKE_VCCE.MAK.

Again, I can build Harbour and my app with the Beta3 build using the _same_ tools and _same_ environment so I think that something has changed in Harbour after the Beta3 build.

Regards,
Randy.


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

Reply via email to