compile opensees with 2015

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

Moderators: silvia, selimgunay, Moderators

Post Reply
keqiliu
Posts: 4
Joined: Tue Jun 07, 2016 7:55 pm

compile opensees with 2015

Post by keqiliu »

Dear fmk,

I want to use some features of c++11. So I was trying to use vc2015 to compile opensees, but I was faced with many compiling errors, such as "error LNK2019: unresolved external symbol vsprintf" and "error LNK2001: unresolved external symbol _iob_func".

Would you kindly tell me if opensees can be compiled with vc2012, vc2013 or vc2015. And how to resolve the error?

Thanks a lot.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: compile opensees with 2015

Post by fmk »

the person who keeps the windows projects updated uses 2012
blaiman
Posts: 56
Joined: Wed Jul 11, 2012 11:59 am
Location: RISA Tech, Inc.

Re: compile opensees with 2015

Post by blaiman »

I'm pretty much stuck with the same problem... Everything ran very well when compiling and building in MSVS 2010 even with my new code and modifications. The moment I ported over to MSVS 2015 and it updated all my projects, I get the exact same link errors as keqiliu. I gotta play around with this and see how I can do a workaround or maybe ask someone at my office since we ported over our development work from MSVS 2010 to MSVS 2015 also.

Anyone else on here running into the same type of snag and found solutions? Would be greatly appreciated!
Brighton Laiman
Development Engineer
RISA Technologies
Foothill Ranch, CA
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: compile opensees with 2015

Post by fmk »

sorry but until i can get a machine with 2015 installed i can only provide suggestions .. have you tried google for a possible solution .. there are a few here:

http://stackoverflow.com/questions/3105 ... -dxerr-lib
huyuntian
Posts: 10
Joined: Sun Sep 28, 2014 6:41 pm

Re: compile opensees with 2015

Post by huyuntian »

Hi~
I also faced the same errors. :shock:

In VS2015, the stdio is defined by:

_ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned);
#define stdin (__acrt_iob_func(0))
#define stdout (__acrt_iob_func(1))
#define stderr (__acrt_iob_func(2))

but in VS10/12/13 that is defined by :

_CRTIMP FILE * __cdecl __iob_func(void);
#define stdin (&__iob_func()[0])
#define stdout (&__iob_func()[1])
#define stderr (&__iob_func()[2])

but i dont know how to solve this problem, i hope fmk could give some idea?

so, lets find out how to fix it....
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: compile opensees with 2015

Post by fmk »

you can't use 15 until I can get a current version of the intel compiler and update all the fortran libraries. at the moment i don't have the funds to do so.
idealzeng
Posts: 3
Joined: Sun May 21, 2017 4:42 am
Location: shenzhen,china
Contact:

Re: compile opensees with 2015

Post by idealzeng »

I compile opensees with vs2017 successfully
blaiman
Posts: 56
Joined: Wed Jul 11, 2012 11:59 am
Location: RISA Tech, Inc.

Re: compile opensees with 2015

Post by blaiman »

idealzeng wrote:
> I compile opensees with vs2017 successfully

Which revision of the code did you pull to get it to work on MSVS? I pulled the 6236 release code and have 775 errors after I converted to 2017 and tried to do a re-build.
Brighton Laiman
Development Engineer
RISA Technologies
Foothill Ranch, CA
Post Reply