Compiling Errors

  • Nicko21
    11th Apr 2011 Member 0 Permalink
    Can someone please help me with these errors:

    1>------ Build started: Project: TPT Source, Configuration: Debug Win32 ------
    1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>misc.obj : error LNK2019: unresolved external symbol __imp__regfree referenced in function _sregexp
    1>misc.obj : error LNK2019: unresolved external symbol __imp__regexec referenced in function _sregexp
    1>misc.obj : error LNK2019: unresolved external symbol __imp__regcomp referenced in function _sregexp
    1>C:\Users\Nicolaus\Desktop\PWNAGE\Debug\TPT Source.exe : fatal error LNK1120: 3 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I am new to c++ and I have looked around to find the answer but I can't find any.
    Thank you for your time,
    Nick
    Edit:
    Got it working
    Had to copy in regex.lib and link it
    Have fun
    Mods please lock this
  • Simon
    11th Apr 2011 Administrator 0 Permalink
    You're missing the regex library, It can be very difficult to find for Windows, I'd recommend checking out the MinGW project for a regex library for Windows.
  • Nicko21
    11th Apr 2011 Member 0 Permalink
    I have downloaded the regex 2.7 and it has some folders in it, do I need to copy certain files over or do I need to copy over all the folders and link them.
    Thank you in advance,
    Nick
  • tommig
    11th Apr 2011 Member 0 Permalink
    regex.h and regex.lib are the ones you need to copy, there may be more, I'll check
Locked by cracker64: Requested