Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
c5ea0cd1
Commit
c5ea0cd1
authored
May 23, 2013
by
Peter Eastman
Browse files
Fixed linker errors on Windows
parent
7cbb8a01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
libraries/lbfgs/include/lbfgs.h
libraries/lbfgs/include/lbfgs.h
+14
-4
No files found.
libraries/lbfgs/include/lbfgs.h
View file @
c5ea0cd1
...
...
@@ -33,6 +33,16 @@
extern
"C"
{
#endif
/*__cplusplus*/
#ifdef _MSC_VER
#if defined(OPENMM_BUILDING_SHARED_LIBRARY)
#define WINDOWS_EXPORT __declspec(dllexport)
#else
#define WINDOWS_EXPORT
#endif
#else
#define WINDOWS_EXPORT
#endif
/*
* The default precision of floating point values is 64bit (double).
*/
...
...
@@ -474,7 +484,7 @@ In this formula, ||.|| denotes the Euclidean norm.
* minimization process terminates without an error. A
* non-zero value indicates an error.
*/
int
lbfgs
(
int
WINDOWS_EXPORT
lbfgs
(
int
n
,
lbfgsfloatval_t
*
x
,
lbfgsfloatval_t
*
ptr_fx
,
...
...
@@ -492,7 +502,7 @@ int lbfgs(
*
* @param param The pointer to the parameter structure.
*/
void
lbfgs_parameter_init
(
lbfgs_parameter_t
*
param
);
void
WINDOWS_EXPORT
lbfgs_parameter_init
(
lbfgs_parameter_t
*
param
);
/**
* Allocate an array for variables.
...
...
@@ -505,7 +515,7 @@ void lbfgs_parameter_init(lbfgs_parameter_t *param);
*
* @param n The number of variables.
*/
lbfgsfloatval_t
*
lbfgs_malloc
(
int
n
);
lbfgsfloatval_t
WINDOWS_EXPORT
*
lbfgs_malloc
(
int
n
);
/**
* Free an array of variables.
...
...
@@ -513,7 +523,7 @@ lbfgsfloatval_t* lbfgs_malloc(int n);
* @param x The array of variables allocated by ::lbfgs_malloc
* function.
*/
void
lbfgs_free
(
lbfgsfloatval_t
*
x
);
void
WINDOWS_EXPORT
lbfgs_free
(
lbfgsfloatval_t
*
x
);
/** @} */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment