Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I overcome LINK:warning LNK4075

Status
Not open for further replies.

Berchinni

Programmer
Apr 20, 2005
2
GB
This is an annoying problem that I cannot get rid of:
Compiling...
04_60_54.c
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /DRIVER
specification
Creating library RTSS_Release\04_60_54.lib and object
RTSS_Release\04_60_54.exp

The MSDN library does not seem useful as written:

Edit and Continue applies to C/C++ programs only.


The following linker options disable Edit and Continue.


· Setting /OPT:REF, /OPT:ICF, or /INCREMENTAL:NO disables Edit and Continue with the following warning:


LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /OPT specification
· Setting /PROFILE, /ORDER, /RELEASE, or /FORCE disables Edit and Continue with this warning:


LINK : warning LNK4075: ignoring /INCREMENTAL due to /option
specification
· Setting any option that prevents the creation of a program
database (.PDB) file disables Edit and Continue with no specific
warning.


Yeah sure the above works with warnings above and I do not create .PDB
ie program debug file so why the warning? I believe the the purpose of
edit and continue is to give you the opportunity to modify the source
code when you have come to a BREAK whilst debbuging.

I can only conclude it may be something in project settings->link ->
project options:

6103ct.lib sapi.lib startupDllCrt.obj rtxlibcmt.lib oldnames.lib
rtapi_rtss.lib rtx_rtss.lib w32_dll.lib /nologo
/entry:"_RtapiDllEntryCRT@8" /pdb:none /machine:I386
/nodefaultlib:"libc" /nodefaultlib:"libcd" /nodefaultlib:"libcmt"
/nodefaultlib:"libcmtd" /out:"RTSS_Release\04_60_54.rtdll"
/libpath:"$(RtxDir)\lib" /libpath:"..\lib" /driver /align:0x20
/subsystem:native,4.00

OR

Project settings -> category GENERAL -> Project options:

/nologo /MT /W3 /GX /Ox /I "$(RtxDir)\include" /I "..\inc" /D "WIN32" /D
"UNDER_RTSS" /D "NDEBUG" /D "RELEASE" /FR"./" /Fp"./04_60_54.pch" /YX
/Fo"./" /Fd"./" /FD /c

Any ideas would be very welcomed.
 
Change the compile setting from /ZI to /Zi (lowercase i)
 
Thanks for the reply. I don't think this will help as I do not set the ZI or Zi flag because I do not want any DEBUG information as PDB is set to none. I am concerned that Zi will affect the runtime. I need to know if the warning is of concern seems to be saying that
you have two conflicting switches specified to the linker,
'/EDITANDCONTINUE' and '/DRIVER'. Pure guesses only, I would expect that '/EDITANDCONTINUE' allows you to start runninga program, hit a breakpoint, edit the program, do an incremental compile,and then continue from your breakpoint, thus you can fix small logic errors in a single debug session. Again guessing, I would expect that '/DRIVER'
says that this is a device driver, and as such runs in a protected mode inthe kernel, where you can not patch the code on the fly.
In summary I need to specify that I am not interested in any DEBUG information so as to kill this warning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top