Stratego/XT JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STR-523
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Martin Bravenboer
Reporter: Martin Bravenboer
Votes: 0
Watchers: 0
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
Stratego/XT

Standalone strc: improve support for creating a library

Created: 2006-03-01 13:43   Updated: 2008-03-31 20:46
Component/s: strc - Stratego compiler
Affects Version/s: 0.16 (Stratego Core Compiler)
Fix Version/s: 0.17

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Problem 1:
======================================
$ strc -i foo.str --library
[ strc | info ] Compiling 'foo.str'
[ strc | info ] Front-end succeeded : [user/system] = [2.58s/0.45s]
[ strc | info ] Optimization succeeded -O 2 : [user/system] = [0.13s/0.05s]
name for library same as name for base file: foo
======================================
Solution: default to libfoo

Problem 2:
======================================
[ strc | info ] Back-end succeeded : [user/system] = [2.54s/0.10s]
[ strc | error ] Command failed :
mkdir .libs
gcc libfoo.o -o libfoo /pkg/strategoxt/2005-12-12-16-32/lib/libstratego-lib-native.so -L /home/martin/.nix-profile/lib /pkg/strategoxt/2005-12-12-16-32/lib/libstratego-runtime.so /nix/store/926px9yik39shmsgmw4nhiyh0gvqlgl3-aterm-2.4.2/lib/libATerm.so -lm -Wl,--rpath -Wl,/pkg/strategoxt/2005-12-12-16-32/lib -Wl,--rpath -Wl,/nix/store/926px9yik39shmsgmw4nh iyh0gvqlgl3-aterm-2.4.2/lib -Wl,--rpath -Wl,/pkg/strategoxt/2005-12-12-16-32/lib -Wl,--rp ath -Wl,/nix/store/926px9yik39shmsgmw4nhiyh0gvqlgl3-aterm-2.4.2/lib
/nix/store/1mgfgy3ga4m9z60747s0yzxl0g6w5kxz-glibc-2.3.6/lib/crt1.o: In function `_start':
init.c:(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

[ strc | error ] Compilation failed (7.84 secs)
======================================

strc should do the appriopiate stuff for compiling the .c file to a library (of course, use libtool)


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.