[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] [Fwd: Linking error underwindows]
From: |
Gang Su |
Subject: |
Re: [igraph] [Fwd: Linking error underwindows] |
Date: |
Thu, 05 Nov 2009 17:25:35 -0500 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hi Garbor,
According to that thread, I changed mode from "Debug" to "Release", and
solved the problem. I can build the application now, however, when I run
it under windows, it halted and quited by itself.
Here's another very simple test i made. This algorithm will run in R
with the same data, but just abort itself in C. Just curious what's
going on there.
//The graph creation was fine, the line that failed was
igraph_layout_drl(&g, &locs, 0, &options, 0, 0);
It should work as the same graph obj works in R
/*test whether igraph is correctly linked*/
#include <stdio.h>
#include "igraph.h"
#include <iostream>
//link successful. It's actually working.
int main(int argc, char* argv[])
{
//igraph_t g;
//FILE *outfile;
//igraph_barabasi_game(&g, 1000, /*m=*/2, /*outseq=*/0,
/*outpref=*/0, /*directed=*/1);
//igraph_simplify(&g, /*multiple=*/1, /*loops=*/0);
//outfile=fopen("out.txt", "w");
//igraph_write_graph_edgelist(&g, outfile);
//fclose(outfile);
//igraph_destroy(&g);
int edgeArray[] =
{0,2,6,17,7,19,18,19,3,21,9,21,12,22,5,24,3,25,6,25,16,25,20,29,21,29,28,31,10,32,8,33,19,33,6,34,11,34,9,42,37,44,18,45,35,45,46,47,7,48,32,48};
igraph_t g;
igraph_vector_t v;
igraph_vector_init(&v, 52);
for(int i=0; i<52; i++){
VECTOR(v)[i] = edgeArray[i];
}
igraph_create(&g, &v, 0, 0);
printf("this is working");
long int vcount = igraph_vcount(&g);
igraph_matrix_t locs;
igraph_matrix_init(&locs, vcount, 2);
igraph_layout_drl_options_t options;
igraph_layout_drl_options_init(&options, IGRAPH_LAYOUT_DRL_COARSEN);
//Force directed DRL
igraph_layout_drl(&g, &locs, 0, &options, 0, 0);
return 0;
}
Gábor Csárdi wrote:
Hi Gang,
maybe you can try to search for the error message, some other people
had the for various libraries. See e.g.
http://www.devmaster.net/forums/showthread.php?t=6404
Best,
Gabor
On Thu, Nov 5, 2009 at 10:11 PM, Gang Su <address@hidden> wrote:
And this happened when i was using the function
igraph_layout_drl_options_init
Hi developers,
I was building igraph in visual C++ 2008. Everything worked fine, but when i
was trying the DRL layout, i got the following error:
1>Linking...
1>igraph.lib(drl_layout.obj) : error LNK2001: unresolved external symbol
__imp___invalid_parameter_noinfo
1>igraph.lib(drl_graph.obj) : error LNK2001: unresolved external symbol
__imp___invalid_parameter_noinfo
1>igraph.lib(DensityGrid.obj) : error LNK2001: unresolved external symbol
__imp___invalid_parameter_noinfo
This is all the error message i got. Does anyone have any idea why this
linking failed?
Thanks!
Gang
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help
- [igraph] [Fwd: Linking error underwindows], Gang Su, 2009/11/05
- Re: [igraph] [Fwd: Linking error underwindows], Gábor Csárdi, 2009/11/05
- Re: [igraph] [Fwd: Linking error underwindows],
Gang Su <=
- Re: [igraph] [Fwd: Linking error underwindows], Tamas Nepusz, 2009/11/06
- Re: [igraph] [Fwd: Linking error underwindows], Gang Su, 2009/11/06
- Re: [igraph] [Fwd: Linking error underwindows], Tamas Nepusz, 2009/11/06
- Re: [igraph] [Fwd: Linking error underwindows], Gang Su, 2009/11/06
- Re: [igraph] [Fwd: Linking error underwindows], Gang Su, 2009/11/06
- Re: [igraph] [Fwd: Linking error underwindows], Tamas Nepusz, 2009/11/12
- Re: [igraph] [Fwd: Linking error underwindows], Gang Su, 2009/11/12
- Re: [igraph] [Fwd: Linking error underwindows], Tamas Nepusz, 2009/11/16