• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
December 03, 2024, 02:42:45 pm

News:

SMF - Just Installed!


Conflicting types

Started by sbx, November 26, 2021, 08:05:02 am

Previous topic - Next topic

sbx

I just installed nrcomm_pro960release.exe with C++ builder 11.0.

If I include just one nrComm header, for example: #include "nrbt.hpp" the following errors are displayed:

bcc32c command line for "Unit3.cpp"
  c:\program files (x86)\embarcadero\studio\22.0\bin\bcc32c.exe -cc1 -D _DEBUG -D USEPACKAGES -output-dir .\Win32\Debug -I D:\Workspace\TestBT -I
  "c:\program files (x86)\embarcadero\studio\22.0\include\windows\vcl" -I "C:\Program Files (x86)\nrComm Lib\Delphi28\Win32" -I D:\Workspace\TestBT
  -isystem "c:\program files (x86)\embarcadero\studio\22.0\include" -isystem "c:\program files (x86)\embarcadero\studio\22.0\include\dinkumware64"
  -isystem "c:\program files (x86)\embarcadero\studio\22.0\include\windows\crtl" -isystem "c:\program files
  (x86)\embarcadero\studio\22.0\include\windows\sdk" -isystem "c:\program files (x86)\embarcadero\studio\22.0\include\windows\rtl" -isystem "c:\program
  files (x86)\embarcadero\studio\22.0\include\windows\vcl" -isystem "c:\program files (x86)\embarcadero\studio\22.0\include\windows\fmx" -isystem
  C:\Users\Public\Documents\Embarcadero\Studio\22.0\hpp\Win32 -isystem
  C:\Users\HP\Documents\Embarcadero\Studio\22.0\CatalogRepository\GoogleTest-2021.09\googletest\Src -isystem
  C:\Users\HP\Documents\Embarcadero\Studio\22.0\CatalogRepository\GoogleTest-2021.09\googletest\include\gtest -isystem
  C:\Users\Public\Documents\Embarcadero\Studio\22.0\hpp\Win32 -debug-info-kind=standalone -fcxx-exceptions -fborland-extensions -nobuiltininc
  -nostdsysteminc -triple i686-pc-windows-omf -emit-obj -mrelocation-model static -masm-verbose -ffunction-sections -fexceptions -fseh
  -mstack-alignment=16 -fno-spell-checking -fno-use-cxa-atexit -fno-threadsafe-statics -main-file-name Unit3.cpp -x c++ -std=c++17 -O0 -fmath-errno -tR
  -tM -tU -tW -o .\Win32\Debug\Unit3.obj --auto-dependency-output -MT .\Win32\Debug\Unit3.obj -include-pch .\Win32\Debug\Project3PCH1.pch Unit3.cpp
[bcc32c Error] nrbtw32.hpp(264): conflicting types for 'connect'
  winsock2.h(1685): previous declaration is here
[bcc32c Error] nrbtw32.hpp(265): conflicting types for 'bind'
  winsock2.h(1647): previous declaration is here
[bcc32c Error] nrbtw32.hpp(266): conflicting types for 'getsockname'
  winsock2.h(1750): previous declaration is here


I have attached an empty project with the header added.


Roman Novgorodov

Hello

Thank you for the information.
Please download and try the latest release v9.61

Roman Novgorodov
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.