DLL creation with Visual Studio 2017

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
CMiculas
Posts: 26
Joined: Wed Oct 25, 2017 6:23 am
Location: University of Coimbra

DLL creation with Visual Studio 2017

Post by CMiculas »

Dear Community,

I have some troubles creating the dll file with Visual Studio 2017, and I don't have access to an older version.
I was following the steps from https://www.youtube.com/watch?v=BaxFLF6A8Rg&t=1025s, in order to create a DLL file for the ElasticPPcpp example.

I receive the following errors: C4996, C1083!?
I can avoid C4996 by introducing this number into the "Disable Specific Warnings", but the other error still persists?!
Any suggestions?

Yours sincerely,
Cristian
duguyihan
Posts: 13
Joined: Wed Dec 02, 2015 4:05 am
Location: Hunan University

Re: DLL creation with Visual Studio 2017

Post by duguyihan »

I face the same problem.
I can figure it out by selecting "Not using precompiled headers". However, other errors occur, including LNK2005, LNK1169. Still need help.
Michaelson
Posts: 28
Joined: Sat Jan 13, 2018 8:34 pm
Location: Shanghai Jiao Tong University

Re: DLL creation with Visual Studio 2017

Post by Michaelson »

I was able to create .dll but can not use it in OpenSees.
You can create .dll by adding preprocessor definition _CRT_SECURE_NO_WARNINGS_
and choose 32-bit platform as for some reason it cannot link the core directory when set at 64-bit platform.
and then use opensees 32-bit version to run example1.tcl. It did not run for me. If you can do inform me :)
Michaelson
Posts: 28
Joined: Sat Jan 13, 2018 8:34 pm
Location: Shanghai Jiao Tong University

Re: DLL creation with Visual Studio 2017

Post by Michaelson »

use vs 2010 and Bingo :)
deepcone
Posts: 2
Joined: Fri Sep 28, 2018 6:22 pm
Location: HK
Contact:

Re: DLL creation with Visual Studio 2017

Post by deepcone »

i don't find the right soloutions to this problem :oops:
XSD series sand washeris cleaning equipment of international advance level for sand and slag pellets, developed on the basis of introducing foreign outstanding technology of the same kind of products.
Michaelson
Posts: 28
Joined: Sat Jan 13, 2018 8:34 pm
Location: Shanghai Jiao Tong University

Re: DLL creation with Visual Studio 2017

Post by Michaelson »

using VS 2010 solved it for me :)
Post Reply