error al compilar un programa en c++

adrian
10 de Mayo del 2010
Hola,

Estoy intentando compilar un programa en c++, soy bastante nuevo en esto, de hecho si lo consigo sera el primer programa que logre compilar.. ya ves tu...

Creo que el error que me da es el siguiente:

L/home/linux/illinois/libmesh/src -L/home/linux/illinois/SuperLU -lmesh -lgfx -lfltk -lX11 -lXext -lm
/usr/bin/ld: cannot find -lmesh

żcomo puedo ańadir el -lmesh?
Adjunto el log completo por si en realidad fuera otra cosa,

gracias!





[email protected]:~/illinois$ make -f Makefile.dat
g++ -c -g -O2 -Wall -Wno-sign-compare -I/home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include -DHAVE_CONFIG_H -I/home/linux/illinois/libmesh/include -I/home/linux/illinois/SuperLU/SRC remesh.cxx
remesh.cxx:7:1: warning: "INFINITY" redefined
In file included from /usr/include/math.h:40,
from /usr/include/c++/4.2/cmath:54,
from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/gfx.h:24,
from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/vec2.h:15,
from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/vec3.h:15,
from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/vec4.h:15,
from utils.h:1,
from remesh.cxx:1:
/usr/include/bits/inf.h:27:1: warning: this is the location of the previous definition
In file included from remesh.h:1,
from remesh.cxx:3:
texgui.h: In constructor ‘TexGUI::TexGUI()’:
texgui.h:23: warning: ‘TexGUI::texture’ will be initialised after
texgui.h:14: warning: ‘int TexGUI::grid_period’
texgui.h:25: warning: when initialised here
remesh.cxx: In member function ‘void GUI::compute_all_flows()’:
remesh.cxx:2478: warning: unused variable ‘seed_key’
remesh.cxx:2538: warning: unused variable ‘seed_key’
remesh.cxx: In member function ‘void GUI::post_remesh()’:
remesh.cxx:3552: warning: unused variable ‘face_bound’
remesh.cxx: In member function ‘int GUI::insert_crsng_to_flow(std::vector >&, int, bool)’:
remesh.cxx:2873: warning: control reaches end of non-void function
/usr/include/c++/4.2/bits/stl_pair.h: In member function ‘void GUI::generate_init_seeds(std::multimap, std::allocator > >&)’:
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘fn.flow_node::ratio’ is used uninitialised in this function
remesh.cxx:2301: note: ‘fn.flow_node::ratio’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘fn.flow_node::vertex_id2’ is used uninitialised in this function
remesh.cxx:2301: note: ‘fn.flow_node::vertex_id2’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘fn.flow_node::is_feature’ is used uninitialised in this function
remesh.cxx:2301: note: ‘fn.flow_node::is_feature’ was declared here
remesh.h:54: warning: ‘start_fn.flow_node::vertex_id2’ is used uninitialised in this function
remesh.cxx:2317: note: ‘start_fn.flow_node::vertex_id2’ was declared here
remesh.h:55: warning: ‘start_fn.flow_node::ratio’ is used uninitialised in this function
remesh.cxx:2317: note: ‘start_fn.flow_node::ratio’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘fn.flow_node::is_feature’ is used uninitialised in this function
remesh.cxx:2390: note: ‘fn.flow_node::is_feature’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘backup_seed.flow_node::ratio’ is used uninitialised in this function
remesh.cxx:2420: note: ‘backup_seed.flow_node::ratio’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘backup_seed.flow_node::vertex_id2’ is used uninitialised in this function
remesh.cxx:2420: note: ‘backup_seed.flow_node::vertex_id2’ was declared here
/usr/include/c++/4.2/bits/stl_pair.h:90: warning: ‘backup_seed.flow_node::is_feature’ is used uninitialised in this function
remesh.cxx:2420: note: ‘backup_seed.flow_node::is_feature’ was declared here
remesh.cxx:2390: warning: ‘fn.flow_node::ratio’ may be used uninitialised in this function
remesh.cxx: In member function ‘int GUI::single_grad_flow(const flow_node&, float, std::vector >&)’:
remesh.cxx:1970: warning: ‘first_part_length’ may be used uninitialised in this function
g++ -c -g -O2 -Wall -Wno-sign-compare -I/home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include -DHAVE_CONFIG_H -I/home/linux/illinois/libmesh/include -I/home/linux/illinois/SuperLU/SRC texgui.cxx
texgui.cxx:14:1: warning: "GL_CLAMP_TO_EDGE" redefined
In file included from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/gl.h:27,
from /home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include/gfx/gui.h:20,
from /home/linux/illinois/libmesh/include/mesh/gui-smf.h:15,
from texgui.h:5,
from texgui.cxx:3:
/usr/include/GL/gl.h:1478:1: warning: this is the location of the previous definition
In file included from texgui.cxx:3:
texgui.h: In constructor ‘TexGUI::TexGUI()’:
texgui.h:23: warning: ‘TexGUI::texture’ will be initialised after
texgui.h:14: warning: ‘int TexGUI::grid_period’
texgui.h:25: warning: when initialised here
g++ -o remesh remesh.o texgui.o -g -O2 -Wall -Wno-sign-compare -I/home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/include -DHAVE_CONFIG_H -I/home/linux/illinois/libmesh/include -I/home/linux/illinois/SuperLU/SRC -L/home/linux/illinois/libgfx-1.1.0/libgfx-1.1.0/src -L/home/linux/illinois/libmesh/src -L/home/linux/illinois/SuperLU -lmesh -lgfx -lfltk -lX11 -lXext -lm
/usr/bin/ld: cannot find -lmesh
collect2: ld returned 1 exit status
make: *** [remesh] Error 1

Gera Flo
10 de Mayo del 2010
pues mira como no pones otra cosa, lo unico que se me ocurre es que tu error podria ser a causa de que estas poniento mal alguna libreria, en caso de que Imesh sea una libreria que tu creaste tienes que definirla como #include "imesh.h" (entrecomillado), y si no pues deveriamos ver que es lo que esta pasando.