Compile Warnings when trying to use in a project

59 views
Skip to first unread message

wbar...@gmail.com

unread,
Sep 26, 2018, 5:13:01 PM9/26/18
to LibTom Projects
I've seen the following warnings when using the library in a project of mine and compiling it.

Severity    Code    Description    Project    File    Line    Suppression State
Warning    LNK4098    defaultlib 'libcmtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library    CiDESBBS_140    C:\Users\wbbarnes\Documents\My Received Files\CiDESBBS\CiDESBBS\MSVCRTD.lib(initializers.obj)    1   
Warning    C4273    'malloc': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    33   
Warning    C4273    'realloc': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    34   
Warning    C4273    'calloc': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    35   
Warning    C4273    'free': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    36   
Warning    C4273    'qsort': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    38   
Warning    C4273    'clock': inconsistent dll linkage    CiDESBBS_140    c:\clibs\include\libtomcrypt\tomcrypt_cfg.h    42   


These warnings showed up after creating a 64-bit version and compiling that in a 64-bit version of a project. These do not show up in a 32-bit build of my project

Severity    Code    Description    Project    File    Line    Suppression State
Warning    LNK4075    ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification    CiDESBBS_140    C:\Users\wbbarnes\Documents\My Received Files\CiDESBBS\CiDESBBS\ANSITerm.obj    1   
Warning    LNK4075    ignoring '/INCREMENTAL' due to '/LTCG' specification    CiDESBBS_140    C:\Users\wbbarnes\Documents\My Received Files\CiDESBBS\CiDESBBS\LINK    1   

Notes: library compiled to a static library for the specific setup as follows
 Machine 1 (Win7 x64 VS2015)
 Machine 2 (Win10 x64 VS2017)

The errors show up on both machines. Without the library in place, these errors do not show up in the project. (The ANSITerm object doesn't even use the library)

wbar...@gmail.com

unread,
Sep 26, 2018, 5:22:44 PM9/26/18
to LibTom Projects
I should add that its using LibTomMath (NOT Fastmath)

Steffen Jaeckel

unread,
Sep 30, 2018, 12:44:40 PM9/30/18
to lib...@googlegroups.com, wbar...@gmail.com
A wild guess from Karel:

> I think that it is related to LTC_NO_PROTOTYPES

Can you try to define 'LTC_NO_PROTOTYPES' when compiling your application?

I don't have a Windoze Machine to test this, so feel free to post your
results.

Cheers,
Steffen
> --
> *** Please reply-to-all at all times ***
> *** (do not pretend to know who is subscribed and who is not) ***
> *** Please avoid top-posting. ***
> ---
> You received this message because you are subscribed to the Google
> Groups "LibTom Projects" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to libtom+un...@googlegroups.com
> <mailto:libtom+un...@googlegroups.com>.
> To post to this group, send email to lib...@googlegroups.com
> <mailto:lib...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/libtom.
> For more options, visit https://groups.google.com/d/optout.

--
Steffen Jaeckel - s_ja...@gmx.de
GnuPG fingerprint: C438 6A23 7ED4 3A47 5541 B942 7B2C D0DD 4BCF F59B
My OTR key has changed on 30. Sept. 2015!
jabber: jae...@jabber.ccc.de 93BA97FA F3702AB7 DCBEB7C7 291DB383 284996CB
Reply all
Reply to author
Forward
0 new messages