Menu

Compiling using Dev-Cpp

Help
2005-09-30
2013-05-09
  • Nobody/Anonymous

    Has anybody successful compiled the sources using Dev-Cpp?
    Which settings I have to do?

     
    • Nobody/Anonymous

      I got it!
      If there is anybody interested in, here is the .dev (for .dll):

      -------------------------------cut-----------------------------------
      [Project]
      FileName=libnodave.dev
      Name=libnodave
      UnitCount=6
      Type=3
      Ver=1
      ObjFiles=
      Includes=
      Libs=
      PrivateResource=
      ResourceIncludes=
      MakeIncludes=
      Compiler=-DBUILDING_DLL=1 _@@_-DBCCWIN  _@@_-DLITTLE_ENDIAN  _@@_-TC _@@_-DDOEXPORT_@@_
      CppCompiler=-DBUILDING_DLL=1_@@_
      Linker=--no-export-all-symbols _@@_--add-stdcall-alias_@@_-lws2_32_@@_
      IsCpp=0
      Icon=
      ExeOutput=
      ObjectOutput=
      OverrideOutput=0
      OverrideOutputName=libnodave.dll
      HostApplication=
      Folders=
      CommandLine=
      UseCustomMakefile=0
      CustomMakefile=
      IncludeVersionInfo=0
      SupportXPThemes=0
      CompilerSet=0
      CompilerSettings=0010000001001000000000

      [Unit1]
      FileName=nodave.h
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit2]
      FileName=openSocket.h
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit3]
      FileName=openSocketw.c
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit4]
      FileName=setport.h
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit5]
      FileName=setportw.c
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit6]
      FileName=nodave.c
      CompileCpp=0
      Folder=libnodave
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [VersionInfo]
      Major=0
      Minor=1
      Release=1
      Build=1
      LanguageID=1033
      CharsetID=1252
      CompanyName=
      FileVersion=
      FileDescription=
      InternalName=
      LegalCopyright=
      LegalTrademarks=
      OriginalFilename=
      ProductName=
      ProductVersion=
      AutoIncBuildNr=0
      -------------------------------cut-----------------------------------

       
      • Nobody/Anonymous

        Yeah this copiles fine and connects to the PLC but wont actually Read or Write data!

         
    • Nobody/Anonymous

      Hi, how i make to compile testMPI.c in Dev? This libnodave's program presents errors...
      How i do to remove this errors?

       
    • Nobody/Anonymous

      What must i do to compile it using Microsoft VC ?
      I tried to compile it, but it didn't work.

       
    • Bruno

      Bruno - 2007-07-25

      I compiled TestTCP.c, but maybe this post can help you:

      [Project]
      FileName=myTest.dev
      Name=myTest
      UnitCount=9
      Type=1
      Ver=1
      ObjFiles=
      Includes=
      Libs=
      PrivateResource=
      ResourceIncludes=
      MakeIncludes=
      Compiler=-DBCCWIN _@@_-DDAVE_LITTLE_ENDIAN _@@_-TC _@@_-DDOEXPORT_@@_
      CppCompiler=
      Linker=--no-export-all-symbols _@@_--add-stdcall-alias_@@_-lws2_32_@@_liblibnodave.a_@@__@@_
      IsCpp=0
      Icon=
      ExeOutput=
      ObjectOutput=
      OverrideOutput=0
      OverrideOutputName=myTest.exe
      HostApplication=
      Folders=
      CommandLine=192.168.1.157
      UseCustomMakefile=0
      CustomMakefile=
      IncludeVersionInfo=0
      SupportXPThemes=0
      CompilerSet=0
      CompilerSettings=0010000001001001000000

      [VersionInfo]
      Major=0
      Minor=1
      Release=1
      Build=1
      LanguageID=1033
      CharsetID=1252
      CompanyName=
      FileVersion=
      FileDescription=Developed using the Dev-C++ IDE
      InternalName=
      LegalCopyright=
      LegalTrademarks=
      OriginalFilename=
      ProductName=
      ProductVersion=
      AutoIncBuildNr=0

      [Unit2]
      FileName=openS7online.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit3]
      FileName=log2.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit5]
      FileName=openS7online.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit7]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit8]
      FileName=testISO_TCP.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit9]
      FileName=nodavesimple.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit12]
      FileName=setport.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit13]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit14]
      FileName=setport.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit15]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit16]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit17]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit4]
      FileName=nodave.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit10]
      FileName=openSocketw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit11]
      FileName=setportw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit6]
      FileName=openSocketw.c
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

      [Unit1]
      FileName=nodave.h
      CompileCpp=0
      Folder=myTest
      Compile=1
      Link=1
      Priority=1000
      OverrideBuildCmd=0
      BuildCmd=

       
    • Nobody/Anonymous

      i tried to compile using Ms vc++ too, but i got too many errors.
      I use the dll with vb, but when the tcp connection has been broken, the dll
      crash and the vb program can't auto reconnect to the plc. So i thought to modify the
      dll, but VC++ doesn't work.
      A complete dll source code project could be a good thing !...

       
    • Nobody/Anonymous

      The COMPLETE source code for the dll IS INCLUDED and ALWAYS WAS. I do not know what version of MSVC you use and I do no know what version od MSVC++ I used, but the released dll actually has been created using MSVC and MAKEFILE.VC.WINE. This is written in the documentation. SEE README, Compiling and other text files!!

      Thomas

       

Anonymous
Anonymous

Add attachments
Cancel