svdComplexDevice2.dll with MS Visual C++ toolchain in Eclipse IDE

Home and Applets > Download SVD-GPU Application Source Code > svdComplexDevice2.dll with MS Visual C++ Toolchain in Eclipse IDE

C++ 64-bit shared library svdComplexDevice2.dll is generated with Microsoft Visual C++ toochain in Eclipse IDE for Java developers. The two CUDA's libraries, cuBLAS and cuSOLVER, are involved in this project.

Visual Studio Community 2022 is needed.

*** Outline ***

  1. C++ 64-bit shared library svdComplexDevice2.dll project with Microsoft Visual C++ toolchain in Eclipse IDE
  2. References

C++ 64-bit shared library svdComplexDevice2.dll project with Microsoft Visual C++ toolchain in Eclipse IDE

  1. Launch Eclipse IDE for Java Developers.
    Select File menu, New, then Project.
    New Project panel appears:

    Select C/C++ then C/C++ Project. Click Next > button.
  2. New C/C++ Project panel appears. Select C++ Managed Build.

    Click Next > button.
  3. C++ Project panel appears.
    Provide Project name: svdComplexDevice2
    Select Shared Library then Empty Project.
    Select Microsoft Visual C++ in Toolchains.

    Click Finish button.
  4. The project folder svdComplexDevice2 appears in Package Explorer of Eclipse.
    Right-click the project folder svdComplexDevice2.
    Select New, then File.
    Create New File panel appears.
    Provide the name for Header file: svdComplexDevice2.h
    Click Finish button.

    Click Finish button.
  5. The empty header svdComplexDevice2.h appears in Package Explorer of Eclipse.
  6. Copy and past svdComplexDevice2.h file into the newly created header file.
    Press Ctrl S to save svdComplexDevice2.h.
  7. Similarly, create the file: svdComplexDevice2.cpp
    Copy and past svdComplexDevice2.cpp file into the newly created source file.

    Press Ctrl S to save svdComplexDevice2.cpp.
  8. Provide the path of include folder of CUDA to compiler.
    Include folder contains header files.
    Right click svdComplexDevice2 project in Package Explorer then select Properties.
    Properties for svdComplexDevice2 panel appears.
    Click Settings in C/C++ Build.
    Click Preprocessor for C++ Compiler in Tool Settings tab.

    Click + symbol in top part of Include Path (/I).
  9. Add directoriy path panel appears.
    Provide "${CUDA_INC_PATH}" for Directory.
    Directory must be enclosed in double quotes because this path contains space characters.

    Click OK button.
  10. "${ASSERT}" provides the location of assert.h, C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt
    Similarly, provide the paths "${INCLUDE1}" and "${ASSERT}"

    Click Apply button.
  11. Provide libraries (cusolver.lib, cublas.lib, and cudart.lib) and their folder location ("${CUDA_LIB_PATH_64}") to the linker.
    Click Libraries for Linker (link) in Tool Settings tab.

    Library file names are provided with extension .lib like in MS Visual Studio and paths are enclosed in double quotes.
    Click Apply and Close button.
    A message appears.
    Click Rebuild Index button.
  12. Select Project menu then Build Project.

    64-bit svdComplexDevice2.dll file with 46 kbit size is generated in Debug folder.
    A message appears on the CDT Build Console.

References

  1. Dan Dar3: Eclipse CDT and Microsoft Visual C++ compiler
  2. StackOverflow: Visual Studio toolchain in Eclipse for C++
  3. StackOverflow: Cannot find corecrt.h
  4. StackOverflow: Cannot open file 'kernel32.lib'
  5. StackOverflow: Cannot open file 'ucrt.lib'
  6. StackOverflow: cannot open file 'MSVCRTD.lib'

Solid-state NMR bibliography for:

Aluminum-27
Antimony-121/123
Arsenic-75
Barium-135/137
Beryllium-9
Bismuth-209
Boron-11
Bromine-79/81
Calcium-43
Cesium-133
Chlorine-35/37
Chromium-53
Cobalt-59
Copper-63/65
Deuterium-2
Gallium-69/71
Germanium-73
Gold-197
Hafnium-177/179
Indium-113/115
Iodine-127
Iridium-191/193
Krypton-83
Lanthanum-139
Lithium-7
Magnesium-25
Manganese-55
Mercury-201
Molybdenum-95/97
Neon-21
Nickel-61
Niobium-93
Nitrogen-14
Osmium-189
Oxygen-17
Palladium-105
Potassium-39/41
Rhenium-185/187
Rubidium-85/87
Ruthenium-99/101
Scandium-45
Sodium-23
Strontium-87
Sulfur-33
Tantalum-181
Titanium-47/49
Vanadium-51
Xenon-131
Zinc-67
Zirconium-91
[Contact me] - Last updated January 13, 2025
Copyright © 2002-2025 pascal-man.com. All rights reserved.